# How to local host an image

**URL:** https://meta.discourse.org/t/how-to-local-host-an-image/163628
**Category:** Support
**Created:** [September 10, 2020, 2:40pm UTC](https://meta.discourse.org/t/how-to-local-host-an-image/163628 "2020-09-10T14:40:03Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![lyseoy](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lyseoy](https://meta.discourse.org/u/lyseoy)
#### Post date: [September 10, 2020, 2:40pm UTC](https://meta.discourse.org/t/how-to-local-host-an-image/163628/1 "2020-09-10T14:40:03Z")

</div>

I’m hosting a 177kB svg background image on [svgshare.com](http://svgshare.com), and it takes a whopping 1.2 seconds to load. I think it would be much faster to local host, but I don’t know how. I’m guessing it’s as simple as uploading the image to my droplet (I’m hosting at Digitalocean) and reference the image with the correct path. But I have no idea what the path needs to be. I’ve not been able to find an index.html file or anything like it.

How do I do this?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [September 10, 2020, 2:55pm UTC](https://meta.discourse.org/t/how-to-local-host-an-image/163628/2 "2020-09-10T14:55:02Z")

</div>

Upload it to a topic and get the URL of the upload.

---

<div class="post-metadata">

### Author: ![lyseoy](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lyseoy](https://meta.discourse.org/u/lyseoy)
#### Post date: [September 10, 2020, 3:05pm UTC](https://meta.discourse.org/t/how-to-local-host-an-image/163628/3 "2020-09-10T15:05:05Z")

</div>

Can’t upload svg-files to topic.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [September 10, 2020, 3:06pm UTC](https://meta.discourse.org/t/how-to-local-host-an-image/163628/4 "2020-09-10T15:06:48Z")

</div>

You can permit svg files for staff by adding `svg` to `authorized extensions for staff `

That way you can upload your file without risking public svg uploads.

---

<div class="post-metadata">

### Author: ![lyseoy](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@lyseoy](https://meta.discourse.org/u/lyseoy)
#### Post date: [September 10, 2020, 3:16pm UTC](https://meta.discourse.org/t/how-to-local-host-an-image/163628/5 "2020-09-10T15:16:38Z")

</div>

@pfaffman @Stephen Thanks guys, that did it! Too easy when you know it. And only takes 70 ms to load now. 👍🏼 How do I select both your answers as the solution?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [September 10, 2020, 3:44pm UTC](https://meta.discourse.org/t/how-to-local-host-an-image/163628/6 "2020-09-10T15:44:44Z")

</div>

I’m afraid that isn’t possible.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 10, 2020, 3:58pm UTC](https://meta.discourse.org/t/how-to-local-host-an-image/163628/7 "2020-10-10T15:58:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
