Can't upload SVG file
Categories
(developer.mozilla.org Graveyard :: File attachments, enhancement)
Tracking
(Not tracked)
People
(Reporter: germain.souquet, Unassigned)
Details
(Whiteboard: [specification][type:bug])
What did you do?
- Edit the page
2. Try to add an attachement
What happened?
I received the error message:
- Files of this type are not permitted.
What should have happened?
The upload should have worked seamlessly
Is there anything else we should know?
The thing that confuses me is that this page already displays SVG images... but for some reason mine isn't accepted.
I am trying to update this page: https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Basic_concepts_behind_Web_Audio_API
Updated•7 years ago
|
Comment 1•7 years ago
|
||
We've disabled SVG uploads because the format is flexible enough to include JavaScript and image references, and can potentially be used as a cross-site scripting vector. Some examples can be seen in bug 1230317. We're planning to mitigate with a Content Security Policy (bug 948151 and private bug 1287621). Until then, staff needs to review and upload SVG attachments. Alternatively, the images can be converted to PNG or another allowed format.
Can you open a content issue on https://github.com/mdn/sprints/issues, and add the images to the GitHub issue?
| Reporter | ||
Comment 2•7 years ago
|
||
Will do, thank you for the feedback 👍
Updated•7 years ago
|
Updated•5 years ago
|
Description
•