On 11/04/2008, Patrick DUBAU patrick.dubau@alsace.iufm.fr wrote:
Patrick DUBAU a écrit :
Herta Van den Eynde a écrit :
On 11/04/2008, Patrick DUBAU patrick.dubau@alsace.iufm.fr wrote:
Herta Van den Eynde a écrit :
On 11/04/2008, Patrick DUBAU patrick.dubau@alsace.iufm.fr wrote:
Herta Van den Eynde a écrit :
> On 11/04/2008, Patrick DUBAU patrick.dubau@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?
i get the error in both situations (through "toobox" or link) . Although with pdf files in works (in both situations)
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.
i used both syntax but it's always the same error : crazy! There must be a solution as it works for you
I found a solution (don't know if it's the best one but it works...) in /LocalSettings.php i put : $wgVerifyMimeType= false; => i can upload my .odt files One strange thing : when i look at the file .odt (in special pages -> Image list) i have type MIME : application/zip
That's because it *is* a zip. And you can actually unzip it.
Kind regards,
Herta