# SVG Upload works, but broken url to image

**URL:** https://meta.discourse.org/t/svg-upload-works-but-broken-url-to-image/45495
**Category:** Bug
**Created:** [2016 年 6 月 9 日午後 8:26 UTC](https://meta.discourse.org/t/svg-upload-works-but-broken-url-to-image/45495 "2016-06-09T20:26:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mindworker](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mindworker/32/115434_2.png) [@mindworker](https://meta.discourse.org/u/mindworker)
#### Post date: [2016 年 6 月 9 日午後 8:26 UTC](https://meta.discourse.org/t/svg-upload-works-but-broken-url-to-image/45495/1 "2016-06-09T20:26:31Z")

</div>

This is a follow-up to my bugreport regarding [SVG Upload not working] ([SVG Upload not working](https://meta.discourse.org/t/svg-upload-not-working/45304)). Upload works now, the svg image size is stripped correctly. The problem appears after the upload, because the image cannot be loaded (shows broken link symbol instead).

Reproduce Steps:

- update to latest commit
- upload svg to new/old topic
- preview should show the svg, but doesn’t. after saving the topic problem persists.
- the file is uploaded correctly and exists in var/discourse/shared/standalone/uploads/default/original/1X/

Some speculation of mine:

- looks like there is some mime-type mix-up. my chromium can’t show the svg in my discourse installation. but copying the image-url and pasting it into a new window starts downloading the file.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016 年 6 月 10 日午前 2:33 UTC](https://meta.discourse.org/t/svg-upload-works-but-broken-url-to-image/45495/2 "2016-06-10T02:33:32Z")

</div>

Sure @zogstrip can you have a look?

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2016 年 6 月 20 日午前 8:23 UTC](https://meta.discourse.org/t/svg-upload-works-but-broken-url-to-image/45495/3 "2016-06-20T08:23:30Z")

</div>

SVGs are now first-class images 🚀

> <https://github.com/discourse/discourse/commit/5e2545a578eabc8a52b9df3a64558f6d2bf2dfa2>

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016 年 6 月 22 日午前 1:28 UTC](https://meta.discourse.org/t/svg-upload-works-but-broken-url-to-image/45495/4 "2016-06-22T01:28:35Z")

</div>


