patatra
Hi,
Got that error on a french wiki:
"Le contenu envoyé ne correspond pas à l'extension du fichier .png."
It says the image I sent isn't PNG. Happened with other tries I did, other filetypes.
I'm unsure what's wrong with it, could be a server configuration problem.
Happens since my update from Rincewind to the latest.
Any ideas ?
Thanks.
taggic
Have you checked the mime.conf within dokuwiki/conf dirctory ?
Maybe your update was not processed correctly/completely.
patatra
In fact I think it also happens with a fresh install of dokuwiki.
mime.conf is fine, I didn't touch to it, checked it anyway.
My additions were in mime.local.conf.
I checked permissions again, it seems they're all assigned to www-data, and it also seems media directories are writable.
Edit: I confirm it happens with a fresh quick-install of dokuwiki.
The error message I get in english is: (tried with a small image)
2.9kB The uploaded content did not match the .png file extension.
With PDF and other files I tried, it says no error, but upload is very quick and I get a 0 byte file size ...
andi
be sure to run the final Angua release, not the RC.
patatra
Hi,
I skipped the RC update on purpose, and can confirm I'm running dokuwiki-2012-01-25.tgz.
Tried with nighly build, and it does the same. (is it normal it doesn't ask me to install DW with it ?)
It was working well with Rincewind, just tried to upload something with another Rincewind installation I had on that same server, and it does work.
Edit: okay, it seems like it WORKS with iceweasel/firefox, but NOT with midori. So there is probably a problem with the way this browser handles the new upload forms.
patatra
Would you have further informations about this issue, like infos about the HTML code behind the forms, so we know what portion of code causes this ?
I'd eventually be glad to investigate the problem on midori side if relevant. Otherwise, I suppose leaving a warn somewhere about the issue, if shared amongst every midori users, might be useful.
My midori version is 0.4.3.
(Okays, infos are in the changelog, I'll check that)
Any way to provide some fallback on a per-user setting, or something alike ?
lupo49
The check if a file is valid for the MediaManager is done in the function "media_contentcheck" inside the inc/media.php. This is a good point where you could start to investigate.