# How to upload svg file for custom fonts

**URL:** https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078
**Category:** Support
**Created:** [1월 3, 2017, 12:03오전 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078 "2017-01-03T00:03:50Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [1월 3, 2017, 12:03오전 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078/1 "2017-01-03T00:03:50Z")

</div>

Hey guys,

My head is exploding.  
I want to upload a few files for custom fonts.

I want the file to be accessible like [domain.com/filename.svg](http://domain.com/filename.svg) or [domain.com/folder/filename.svg](http://domain.com/folder/filename.svg)  
or whatever!

Problem is that the discourse uploader doesn’t upload svg files and I get an error even though I selected the svg from files setting.

I Have full access via filezilla, how can I upload a file somewhere that can be publicly accessed via direct [domain.com/somefile.format](http://domain.com/somefile.format)

I am giving up on this if I dont get any answer here.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [1월 3, 2017, 12:16오전 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078/2 "2017-01-03T00:16:11Z")

</div>

As said in the **READ ME FIRST: Admin Quick Start Guide** topic you can upload `woff2` fonts to the **Assets for the site design** topic, and use the resulting urls.

---

<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: [1월 3, 2017, 12:33오전 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078/3 "2017-01-03T00:33:13Z")

</div>

Also, enable the filetypes you need in Admin, Site Settings, allowed attachment file types.

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [1월 3, 2017, 12:35오전 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078/4 "2017-01-03T00:35:09Z")

</div>

Can’t see the URLs. Whats the address?

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [1월 3, 2017, 12:35오전 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078/5 "2017-01-03T00:35:43Z")

</div>

I did that already  
but it still doesn’t work.

---

<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: [1월 3, 2017, 12:36오전 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078/6 "2017-01-03T00:36:48Z")

</div>

You must refresh the browser after editing the allowed file types. We assume these settings are not changing a lot so they are heavily cached.

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [1월 3, 2017, 12:38오전 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078/7 "2017-01-03T00:38:53Z")

</div>

I did that too, cleared the cache too!

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [1월 3, 2017, 12:41오전 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078/8 "2017-01-03T00:41:59Z")

</div>

I get this error when i upload svg files:  
Sorry, but we couldn’t determine the size of the image. Maybe your image is corrupted?

---

<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: [1월 3, 2017, 12:42오전 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078/9 "2017-01-03T00:42:03Z")

</div>

Could be a bug related to svg uploads as attachments; we don’t see a lot of those, and they have security implications as well.

I suggest using woff2 instead as it is more standard for fonts.

---

<div class="post-metadata">

### Author: ![Arta\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arta_s/32/537495_2.png) [@Arta\_S](https://meta.discourse.org/u/Arta_S)
#### Post date: [1월 3, 2017, 1:11오전 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078/10 "2017-01-03T01:11:28Z")

</div>

I did that and it worked well.  
thanks

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6월 8, 2024, 12:45오후 UTC](https://meta.discourse.org/t/how-to-upload-svg-file-for-custom-fonts/55078/11 "2024-06-08T12:45:11Z")

</div>

이 주제는 2713일 후 자동으로 닫혔습니다. 새로운 답변은 더 이상 허용되지 않습니다.
