On 11/04/2008, Patrick DUBAU <patrick.dubau(a)alsace.iufm.fr> wrote:
Herta Van den Eynde a écrit :
On 11/04/2008, Patrick DUBAU
<patrick.dubau(a)alsace.iufm.fr> wrote:
> Michael Daly a écrit :
>
>
>>
>>> I want to upload odt files (open office) but i get the followning
error
>>> message :
>>> " This file is corrupt, has a zero size or an invalid extension"
>>>
>>>
>> Do you have a valid entry in /wiki/includes/mime.types for odt? If
not,
add one.
Mike
yes i have : application/vnd.oasis.opendocument.text odt
In LocalSettings.php set "$wgEnableUploads = true;" and add odt to the
array
of $wgFileExtensions (e.g., $wgFileExtensions =
array( 'png', 'odt' ); )
Kind regards,
Herta
Thanks but this has already been done
Just to make sure: have you verified the "This file is corrupt" and "has
a
zero size" part of the error message?
Also, have you checked that odt is not blacklisted ($wgFileBlacklist and
$wgMimeTypeBlacklist in both LocalSettings.php and DefaultSettings.php)?
FWIIW, uploading odt works fine for me (Mediawiki 1.11).
Kind regards,
Herta
--
"Life on Earth may be expensive,
but it comes with a free ride around the Sun."