Herta Van den Eynde a écrit :
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
my file is not corrupt and size<>0
no blacklisted
i already tested in 1.1 without success
i think that i doesn't make a mistake in the link
[[Image:Config.odt|Config.odt]]
or am i wrong ?
is it a problem from apache (v1.3 on debian etch) ?
Just a second: are you getting errors uploading the file (i.e. if things
haven't changed drastically between 1.11 and 1.12 using the left side column
"toolbox" -> "Upload file" ) or linking to the file?
The [[Image:Config.odt|Config.odt]] syntax would be used to include an image
in a page, which doesn't make much sense for an .odt file. To link to the
file, you'd want to use [[Media:Config.odt|Config.odt]], as per the
explanation on the "Upload file" page.
Kind regards,
Herta
--
"Life on Earth may be expensive,
but it comes with a free ride around the Sun."