[dokuwiki] Re: Problem uploading files

Julio Biason wrote:
On 23/12/05, koen huybrechts <huybkoen@xxxxxxxxx> wrote:
When you get this message it's because the PHP-installation doesn't allow
tar.gz . Have you tried to upload a .jpg? (this should work)

Hm... I wasn't aware that PHP also had file restrictions. I'll check the installation, but I still get errors even when uploading a .jpg...

--
Julio Biason <julio.biason@xxxxxxxxx>
Hi,

I have taken a quick look in the code. That message is generated by dokuwiki and only in one place, when it can't match the one of the mime types in mime.conf to the last characters in the file name.

I created a file with that name and uploaded it successfully. That suggests to me that dokuwiki is having problems accessing your mime.conf file pr the filename isn't being sent to dokuwiki correctly.
- check that your webserver has read access to that file.
- check that file doesn't contain any wierd data
- check that your browser is sending the correct name to dokuwiki (if you edit your lib/exe/media.php, ~line #139. You are looking for a line which says:


msg($lang['uploadwrong'],-1);

change it to

msg($lang['uploadwrong']."- file: $fn",-1);

- perhaps get a fresh copy from the dokuwiki source repository (you can find that through http://wiki.splitbrain.org/wiki:development page links

What version of dokuwiki are you running and what browser are you using?

Cheers,

Chris



--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: