Closed Bug 303905 Opened 20 years ago Closed 19 years ago

Unknown file type dialogue box should report the MIME type

Categories

(Firefox :: File Handling, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 335171

People

(Reporter: ed, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050807 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050807 Firefox/1.0+ When a MIME type sent by the server isn't recognized, Firefox (Deer Park nightly) brings up a prompt asking what to do with this file. It tries to report the type of the file: You have chosen to download: <filename> which is a: <file type> However, the file type after 'which is a:' is just taken from the last part of the filename, which isn't very helpful. For example if the server reports a MIME type of application/foo and the URI ends in .1, then Firefox reports 'which is a: 1 file'. It should instead say, 'which is of type: application/foo'. Displaying the file extension would be a useful last resort if the MIME type is unknown or something generic like application/octet-stream. I think there are other bug reports which could be filed around the area of MIME types and file extensions, but I have logged this bug for one specific issue. Reproducible: Always Steps to Reproduce: 1. Visit the URI above in Firefox. Actual Results: I am asked what to do with this file, 'which is a: 1 file'. Expected Results: It should say that this is 'a file of type application/foo' or something a bit more informative than just the last bit of the filename, which I already know.
Sounds very usefull indeed. Similar to Seamonkey Bug 157188 I'm not sure if this should be component filehandling or downloadmanager
Status: UNCONFIRMED → NEW
Ever confirmed: true
Duping to the more recent bug #335171 because there's more information and a better testcase there. *** This bug has been marked as a duplicate of 335171 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.