Recognizing filetypes of files

RESOLVED INVALID

Status

SeaMonkey
General
RESOLVED INVALID
14 years ago
13 years ago

People

(Reporter: Sander Van de Moortel, Unassigned)

Tracking

Trunk
x86
Windows XP

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
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

14 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
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
Last Resolved: 14 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.