Name: RTAdams89 Date: January 21, 2007 at 16:56:54 Pacific Subject: JPEG MIME type issues OS: na CPU/Ram: na Model/Manufacturer: na
Comment:
I have a PHP script that allows users to upload an image to a directory. Before allowing the upload it does a check of the MIME type to verify it is a JPEG image. I had it set to allow only 'image/jpeg' or 'image/pjpeg' files to be uploaded. When I tried to upload a test image from my computer it worked fine. However, from another computer, the same image would be blocked. I discovered this was because the image was being detected as a 'image/jpg'. Why would the same image be reported as 'image/jpg' from one computer and 'image/jpeg' from a different computer?
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE