# Serving images a downloads?

**URL:** <https://forum.getkirby.com/t/serving-images-a-downloads/29632>\
**Category:** Questions\
**Created:** [October 1, 2023, 1:31pm UTC](https://forum.getkirby.com/t/serving-images-a-downloads/29632 "2023-10-01T13:31:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevq](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/kevq/32/13682_2.png) [@kevq](https://forum.getkirby.com/u/kevq)\
**Post date:** [October 1, 2023, 1:31pm UTC](https://forum.getkirby.com/t/serving-images-a-downloads/29632/1 "2023-10-01T13:31:27Z")

</div>

Hey folks,

I’m having a weird issue with the way in which images are served on my site. It seems that instead of loading them in the browser, they’re downloaded instead. For example, if you go to [this link](https://kevquirk.com/media/pages/blog/migrating-this-blog-to-kirby/36e54b2618-1696085781/my-kirby-panel.webp), what I’d expect is for the image to be loaded in the browser window, but instead what happens is the image is downloaded.

Is this something I’m doing wrong, or is it exepcted behaviour with Kirby?

Thanks.

---

<div class="post-metadata">

**Author:** ![GB\_DESIGN](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/gb_design/32/14956_2.png) [@GB\_DESIGN](https://forum.getkirby.com/u/GB_DESIGN)\
**Post date:** [October 1, 2023, 2:55pm UTC](https://forum.getkirby.com/t/serving-images-a-downloads/29632/2 "2023-10-01T14:55:57Z")

</div>

Are only .webp files affected, or also .jpeg and .png?  
Have you already deleted the media folder?  
Are there any settings in the .htaccess that might be triggering the problem?

---

<div class="post-metadata">

**Author:** ![kevq](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/kevq/32/13682_2.png) [@kevq](https://forum.getkirby.com/u/kevq)\
**Post date:** [October 1, 2023, 4:09pm UTC](https://forum.getkirby.com/t/serving-images-a-downloads/29632/3 "2023-10-01T16:09:06Z")

</div>

Only seems to be webp actually. I’ve made no changes to `.htaccess`.

I know this is a Kirby issue as a [webp on a test domain](https://staging.kevquirk.com/test.webp) (that isn’t Kirby), hosted on the same server, works fine.

---

<div class="post-metadata">

**Author:** ![GB\_DESIGN](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/gb_design/32/14956_2.png) [@GB\_DESIGN](https://forum.getkirby.com/u/GB_DESIGN)\
**Post date:** [October 1, 2023, 4:23pm UTC](https://forum.getkirby.com/t/serving-images-a-downloads/29632/4 "2023-10-01T16:23:10Z")

</div>

Have you tried the fallback solution with providing different image formats instead of just providing the webp format?

> **[Responsive images](https://getkirby.com/docs/cookbook/performance/responsive-images#modern-image-formats)**
>
> Boost your website's performance with resized images that adapt to all screen sizes and save bandwidth

---

<div class="post-metadata">

**Author:** ![kevq](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/kevq/32/13682_2.png) [@kevq](https://forum.getkirby.com/u/kevq)\
**Post date:** [October 1, 2023, 5:48pm UTC](https://forum.getkirby.com/t/serving-images-a-downloads/29632/5 "2023-10-01T17:48:19Z")

</div>

I don’t see why I should do that. Webp are generally far smaller and more progressive, they work on all browsers and every other blogging platform I’ve used has been fine with them.

---

<div class="post-metadata">

**Author:** ![Thiousi](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thiousi/32/13656_2.png) [@Thiousi](https://forum.getkirby.com/u/Thiousi)\
**Post date:** [October 1, 2023, 5:51pm UTC](https://forum.getkirby.com/t/serving-images-a-downloads/29632/6 "2023-10-01T17:51:50Z")

</div>

I have no issue with webp and kirby kevq.  
Maybe you could try providing a tiny bit of context to help guide you in the right direction.  
What is your server configuration, your htacess, how is this file uploaded/created, does it display in the front-end? What is your kirby version etc.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 1, 2023, 7:10pm UTC](https://forum.getkirby.com/t/serving-images-a-downloads/29632/7 "2023-10-01T19:10:51Z")

</div>

When i open your link to the file it does not download but show the file contents. I guess its an issue with the server config.

---

<div class="post-metadata">

**Author:** ![kevq](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/kevq/32/13682_2.png) [@kevq](https://forum.getkirby.com/u/kevq)\
**Post date:** [October 5, 2023, 11:59am UTC](https://forum.getkirby.com/t/serving-images-a-downloads/29632/8 "2023-10-05T11:59:51Z")

</div>

Thanks - I’ll take a look at the server to see what’s going on. Strange that other sites on the same server work ok though.
