https://bugzilla.wikimedia.org/show_bug.cgi?id=30043
Web browser: ---
Bug #: 30043
Summary: Upload warning incorrect "File extension does not
match MIME type." with URL encoded filenames
Product: MediaWiki
Version: 1.17
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Uploading
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
When using "Source URL" "sideloading" to upload a file using the file's URL, if
the file name contains URL-encoded characters, the warning "File extension does
not match MIME type." is given. Removing the URL-encoded characters from the
file name allows the upload to proceed, but the checkbox "Ignore any warnings"
does not work.
I discovered the bug with this file, which has an URL encoded comma %2C after
the word "Park":
http://commons.wikimedia.org/wiki/File:Gyps_rueppellii_-Nairobi_National_Park,_Kenya-8-4c.jpg
I'm not sure how this should be solved, since I don't know what characters are
not allowed in a file name, if any. It may depend on the system. It might be a
good idea to strip out characters that are allowed in URLs, but not in file
names.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l