On Jan 30, 2004, at 13:41, David Friedland wrote:
".pdf" is not a recommended image file
format.
But no form to submit anyway appears. Thus I cannot upload the files.
Is this a bug, the intended behavior, or a misconfiguration?
This was a misconfiguration (using the now default extra-strict mode
instead of the more lenient mode we want for Wikipedia) which was fixed
yesterday, then accidentally put back in place. Should be fixed now.
It'll now completely refuse to accept a few formats, but should be
again overrideable for formats that it just doesn't recognize.
Here are the defaults for 'recommended' file formats and the blacklist:
# This is the list of preferred extensions for uploading files.
Uploading
# files with extensions not in this list will trigger a warning.
$wgFileExtensions = array( "png", "jpg", "jpeg",
"ogg" );
# Files with these extensions will never be allowed as uploads.
$wgFileBlacklist = array(
# HTML may contain cookie-stealing JavaScript and web bugs
"html", "htm",
# PHP scripts may execute arbitrary code on the server
"php", "phtml", "php3", "php4",
"phps",
# Other types that may be interpreted by some servers
"shtml", "jhtml", "pl", "py",
# May contain harmful executables for Windows victims
"exe", "scr", "dll", "msi",
"vbs", "bat", "com", "pif" );
The blacklist isn't foolproof, but it's just a little extra precaution.
-- brion vibber (brion @
pobox.com)