https://bugzilla.wikimedia.org/show_bug.cgi?id=40479

--- Comment #5 from johnnymrni...@gmail.com 2012-09-24 17:36:04 UTC ---
(In reply to comment #3)
> Say someone uploads a file named: "esp. cute dogs.jpg"
> 
> Ignoring the fact commons probably doesn't need yet another pic of someone's
> puppies, the period denotes the esp is an abbreviation for especially. Under
> this proposal would you like us to
> A) prevent the file being uploaded
> B) Auto rename it to esp.jpg
> C) Magically recognize the ". cute dogs" is not an extension, and let it
> through.

The software already knows which extensions belong to which MIME types, it's
not magic. As ". cute dogs" is not an extension, there would be no issue. There
is no reason to attack every period, only known extensions.

Even unknown extensions should be safe, as long as their MIME type is equally
unknown. If the MIME type is known, it's appended. So if a JPEG is uploaded as
"esp. cute dogs.dog", it would become "esp. cute dogs.dog.jpg", and the
uploaded is asked if they wish to continue.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to