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

Bagariavivek <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Bagariavivek <[email protected]> 2012-02-22 14:01:13 UTC 
---
@Badon:The problem is not in characters of the file..

*The Problem is in Guessing of Mime Type 

In function verifyFile,the following code guesses the mime type 
$var = FSFile::getPropsFromPath(temppath and extension)

Case1:When i upload images from google image search for example -
http://www.hollywoodreporter.com/sites/default/files/2011/05/googlelogoa_a_l.jpg
        '''$var contains the right MIME Type'''


Case2:When i upload a pic from wikipedia 
http://commons.wikimedia.org/wiki/File:Gyps_rueppellii_-Nairobi_National_Park,_Kenya-8-4c.jpg

        $var contains *WRONG* MIME Type.It contains MIME type of text/html(The
same error comes when we try to upload a html page)which is blacklisted by
default.
I think it is interpreting  these kinds of images as HTML pages

-- 
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

Reply via email to