Bug 56233 - Bugzilla: files (*.c, *.diff, etc.) wrongly recognized as application/octet-stream
Summary: Bugzilla: files (*.c, *.diff, etc.) wrongly recognized as application/octet-s...
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: web (show other bugs)
Version: unknown
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-07 02:47 UTC by Dmitry Gorbachev
Modified: 2013-02-07 12:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
"Enter Bug" form (6.58 KB, image/png)
2013-02-07 02:47 UTC, Dmitry Gorbachev
Details
"Create New Attachment" form (19.27 KB, image/png)
2013-02-07 02:49 UTC, Dmitry Gorbachev
Details
"Enter Bug" form (w/o javascript) (21.38 KB, image/png)
2013-02-07 03:37 UTC, Dmitry Gorbachev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Gorbachev 2013-02-07 02:47:16 UTC
Created attachment 29378 [details]
"Enter Bug" form

When filing a new bug report, bugzilla treats attached files as binary rather then text/plain (making them more difficult to view). Unfortunately, it doesn't allow to choose the content type manually (it only works when javascript support is turned off in a browser, or when adding an attachment to already existing bug report).
Comment 1 Dmitry Gorbachev 2013-02-07 02:49:14 UTC
Created attachment 29379 [details]
"Create New Attachment" form
Comment 2 Andrew Pinski 2013-02-07 02:53:28 UTC
>bugzilla treats attached files as binary 
No what is happening is your browser is sending this mime type when it did the upload.  There is not much bugzilla can do.
Comment 3 Dmitry Gorbachev 2013-02-07 03:34:21 UTC
> There is not much bugzilla can do.

It could either ignore mime type as sent by the browser, or show the "Content Type" section.
Comment 4 Dmitry Gorbachev 2013-02-07 03:37:53 UTC
Created attachment 29381 [details]
"Enter Bug" form (w/o javascript)
Comment 5 Frédéric Buclin 2013-02-07 12:26:56 UTC
Click the "Show Advanced Fields" link at the top of the page to see all fields, including the ability to select the MIME type.