Last modified: 2012-04-12 13:54:11 UTC
The relevant parts of my LocalSettings.php read as follows: $wgEnableUploads = true; $wgUploadSizeWarning = 0; $wgMaxUploadSize = 33554432; $wgUseAjax = true; $wgCheckFileExtensions = false; $wgStrictFileExtensions = false; $wgVerifyMimeType = false; Although this should allow uploading of all file types, I cannot upload PDF or ODF documents with this configuration. After choosing them in Firefox 3.6 as upload, nothing happens, the input box stays empty, no error message. I have to explicitly add $wgFileExtensions[] = 'pdf'; $wgFileExtensions[] = 'odt'; $wgFileExtensions[] = 'ods'; $wgFileExtensions[] = 'odp'; so it works. Looks like a bug to me.
odt, ods and odp could be hitting the zip blacklist. There shouldn't be such problem for pdfs, though. (and as you probably know, doing it this way is insecure)
PDFs don't work either. However, I thought with my above settings, the blacklist should be out of effect? "Files with these mime types will never be allowed as uploads if $wgVerifyMimeType is enabled." and "Files with these extensions will never be allowed as uploads if $wgCheckFileExtensions is set to true." As VerifyMimeType is set to false, and CheckFileExtensions is set to false, no blacklist should be in effect?
If I remember correctly, the ZIP checks can't be disabled without changing the code.
Then it should be documented in the wiki, I guess. However, it doesn't explain why PDF doesn't work.
Seems to be related to bug #23583 (/skins/common/upload.js does not consider wgCheckFileExtensions)
Does it upload with javascript disabled in the browser?
Indeed, it does. Just tried to upload ODF (OpenDocument Formula). With JS enabled in FF 3.6, upload doesn't work, with disabled JS it works like a charm.
Resolving as dupe of bug 23583 rather than a dependency. *** This bug has been marked as a duplicate of bug 23583 ***