upload a pdf-file ist reported by firefox as mime-type "x-type/subtype" instead of "application/pdf"

RESOLVED DUPLICATE of bug 373621

Status

()

Firefox
General
--
major
RESOLVED DUPLICATE of bug 373621
9 years ago
6 years ago

People

(Reporter: Dieter N., Unassigned)

Tracking

3.5 Branch
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2

see below

Reproducible: Always

Comment 1

8 years ago
same as bug 547234

Updated

7 years ago
Version: unspecified → 3.5 Branch

Comment 2

6 years ago
My project provides an file uploader for the users. When some FF10+ users try to upload a PDF, it is being sent as x-type/subtype, which is causing the file type security in my app to fail. Is this issue dead?
Would be helpful to figure out where that value comes from.

However, relying on browser-supplied content type in your web app is prone to user (and application) error, probing the type yourself is prone to security issues when the probing gets too complex.

Firefox does not seem to handle file types sensibly and nobody seems to care.

Also it tries to get file type information from the system and does not filter out what it gets in any way.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 373621
You need to log in before you can comment on or make changes to this bug.