Closed
Bug 226561
Opened 21 years ago
Closed 21 years ago
Recognizing filetypes of files
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: sander.vandemoortel, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7 It may just be me, and it probably is, but no one has been able to provide me with a solution. I have this upload forum and then a php line if (($_FILES['img1'] != "") && ($_FILES['img1']['type'] == "image/pjpeg")) { which checks whether a real image was sent and whether it is JPG or not. This worked fine in Internet Explorer but Firebird (and Mozilla) seem to pass another value for filetype of a JPG file, is this possible? And if yes, which one? Reproducible: Always Steps to Reproduce: 1. 2. 3.
Comment 1•21 years ago
|
||
Don't file a bug as a Firebird bug if it occurs in Mozilla as well. You might try image/jpeg.
Assignee: blake → general
Component: General → Browser-General
Product: Firebird → Browser
QA Contact: general
Version: unspecified → Trunk
Comment 2•21 years ago
|
||
Not a mozilla bug... We recognize the following MIME types for JPEG images (and your code needs to as well): image/jpg image/jpeg image/pjpeg In fact, sending image/pjpeg for a non-progressive JPEG is totally incorrect.. Next time, please use Google ("JPEG image MIME type" gives lots of relevant results) instead of filing Mozilla bugs on resolving your server configuration issues...
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•