Closed Bug 896478 Opened 11 years ago Closed 10 years ago

Wrong mime type for PDF on Mac Version 22

Categories

(Firefox :: File Handling, defect)

22 Branch
x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: h.ahrens, Unassigned, NeedInfo)

Details

(Whiteboard: [bugday-20140113])

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36

Steps to reproduce:

File input field in form is checked for mime type by PHP:
if($_FILES['xx']['type']=="application/pdf"){...}

UserAgent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:22.0) Gecko/20100101 Firefox/22.0


Actual results:

wrong mime type in $_FILES['xx']['type']: "pdf/application"


Expected results:

mime type in $_FILES['xx']['type']: "application/pdf"
OS: Windows 7 → Mac OS X
Hi, and thanks for submitting this bug.
Could you please provide a clear, concise description and complete steps to reproduce?
Don't know how I can describe it better as before but I'll try:

---

a) In a PHP environment with FireFox for Mac I receive a wrong MimeType for PDF files uploaded in a form
b) catch the MimeType as string in "$_FILES['xx']['type']" from the POST data

expected result: "application/pdf"
wrong result: "pdf/application"

affected browser: UserAgent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:22.0) Gecko/20100101 Firefox/22.0

---

So what information do you need more to reproduce this by self?
Component: Untriaged → File Handling
Whiteboard: [bugday-20140113]
Could you please try the following :

1) try this with a clean profile: http://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles

2) running in Safe mode: http://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
Flags: needinfo?(h.ahrens)
Marked incomplete due to lack of response.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.