Not logged in. · Lost password · Register
Forum: General Help and Support General Stuff RSS
Some uploads don't work since update
"Sent content doesn't correspond to the file extension .jpg"
Avatar
Patatra #1
Member since Jan 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Some uploads don't work since update
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.
Avatar
Taggic (Moderator) #2
Member since Jan 2011 · 777 posts · Location: Gilching, Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
Have you checked the mime.conf within dokuwiki/conf dirctory ?
Maybe your update was not processed correctly/completely.
best regards
Taggic
f-con wiki: http://www.fristercons.de/fcon/
Avatar
Patatra #3
Member since Jan 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
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 ...
This post was edited 2 times, last on 2012-01-31, 17:28 by Patatra.
Avatar
andi (Administrator) #4
User title: splitbrain
Member since May 2006 · 3471 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
be sure to run the final Angua release, not the RC.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
Patatra #5
Member since Jan 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
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.
This post was edited 2 times, last on 2012-01-31, 22:06 by Patatra.
Avatar
Patatra #6
Member since Jan 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
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 ?
This post was edited 2 times, last on 2012-02-01, 21:17 by Patatra.
Avatar
lupo49 (Moderator) #7
Member since Jul 2009 · 1399 posts · Location: Warstein, Germany
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
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.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-09-16, 22:49:31 (UTC +02:00)