Last modified: 2010-07-01 19:55:25 UTC
Previously, by disabling $wgStrictFileExtensions, I could upload files with extensions that are not among the "preferred extensions" Since upgrading MediaWiki, I can no longer upload files with extensions that are not among the "preferred extensions" upload.js, roughly line 245, refuses to upload these files - even if $wgStrictFileExtensions is disabled
We could easily fix this by exposing wgStrictFileExtensions on the upload page, but that doesn't seem like a good idea to me. Someone might go around looking for mediawiki sites where he can upload arbitrary files. Wouldn't it be best if we retooled all this into a single ajax call ? one that checks for: -name exists -name allowed (file extensions checks) -name normalization (think $wgCapitalizedNamespaces)
(In reply to comment #1) > We could easily fix this by exposing wgStrictFileExtensions on the upload page, > but that doesn't seem like a good idea to me. Someone might go around looking > for mediawiki sites where he can upload arbitrary files. > I don't think it is that much of a problem; you could also try it out by uploading a file. > Wouldn't it be best if we retooled all this into a single ajax call ? > > one that checks for: > -name exists > -name allowed (file extensions checks) > -name normalization (think $wgCapitalizedNamespaces) If somebody would implement that, yes, that would be ideal. But for now exposing wgStrictFileExtensions could be used as quick fix.
Fixed in r68848