Closed Bug 808573 Opened 12 years ago Closed 4 years ago

Allow to attach font files

Categories

(developer.mozilla.org Graveyard :: File attachments, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Jeremie, Unassigned)

References

Details

Attachments

(3 files)

In order to have a live example working on https://developer.mozilla.org/en-US/docs/HTML/Forms/Styling_HTML_forms I need to be able to attach some font files

Because the example is cross-browser compatible, I cannot relay on DATA:URI to embed the fonts inside an HTML file (Legacy IEs do not support DATA:URI).

So it would be convenient to allow EOT, WOFF and TTF files to be attached to a page.
Attached file An example EOT font
Attached file An example TTF font
Attached file An example WOFF font
Python is finding the MIME of these to be "application/octet-stream", which we don't want to open.  We could add this to our htaccess file:

AddType application/x-font-woff .woff

Any thoughts on how to handle this James?
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Ali, why is this invalid? AFAIK we can't embed font to use in our various font-related pages.
Flags: needinfo?(aspivak)
Status: RESOLVED → REOPENED
Flags: needinfo?(aspivak)
Resolution: INVALID → ---
Updated the list of permitted MIME types to include:

application/font-woff          [.woff]
application/x-font-truetype    [.ttf]
application/x-font-opentype    [.otf]
application/font-woff2         [.woff2]

The question is: does the server send the files in the correct type? If not, we need to htaccess this (or the equivalent on AWS).
All I know is that when I try to upload a font, the file is sent but the site does nothing when it arrives. It's weird.
:sheppy can you try again?
Flags: needinfo?(eshepherd)
(In reply to Jannis Leidel [:jezdez] from comment #9)
> :sheppy can you try again?

Just tried an .otf file and got "Files of this type are not permitted."
Flags: needinfo?(eshepherd)
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: REOPENED → RESOLVED
Closed: 10 years ago4 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: