I am trying to upload an image using fUpload but it fails because fUpload thinks it's not a JPEG type.
I traced the class and noticed that it calls fFile::determineMimeTypeByContents which reads the file headers. Well I found a jpeg file which has different headers but it is a jpeg image.
If I open and saveAs this file from MsPaint then it is properly detected.
Here is a screenshot with my hex editor, first XVI window contains the jpg which can't be recognized. The second window is a "Save As" from IrfanView.
I am trying to upload an image using fUpload but it fails because fUpload thinks it's not a JPEG type.
I traced the class and noticed that it calls fFile::determineMimeTypeByContents which reads the file headers. Well I found a jpeg file which has different headers but it is a jpeg image.
If I open and saveAs this file from MsPaint then it is properly detected.
Here is a screenshot with my hex editor, first XVI window contains the jpg which can't be recognized. The second window is a "Save As" from IrfanView.