[dokuwiki] Re: Problem uploading files

On 23/12/05, Chris Smith <chris@xxxxxxxxxxxxx> wrote:
> 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.

Yeah, I tracked it to there too.

I did some more tests and also did a successful upload. Checking what
I did different this time, I found out that DokuWiki is using the
wikiname to check the mime type, not the file itself. In my case, I
was uploading 'mmm-0.1.tar.gz' and giving it the wikiname 'mmm-0.1'.
Of course, the mime failed for the wikiname, even with the filename
having a valid mime type.

Everything is in place now. :)

Just a question: shouldn't the mime check be on the uploaded file and
not on the wikiname?

--
Julio Biason <julio.biason@xxxxxxxxx>
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: