# "Afbeelding groter dan 4 MB" fout bij het plaatsen van een gif

**URL:** https://meta.discourse.org/t/image-larger-than-4mb-error-when-posting-a-gif/349540
**Category:** Support
**Created:** [29 januari 2025 om 11:28 UTC](https://meta.discourse.org/t/image-larger-than-4mb-error-when-posting-a-gif/349540 "2025-01-29T11:28:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [29 januari 2025 om 11:28 UTC](https://meta.discourse.org/t/image-larger-than-4mb-error-when-posting-a-gif/349540/1 "2025-01-29T11:28:26Z")

</div>

As far as I was aware, posting a gif from a third party service doesn’t actually upload the image to the server, isn’t that right?

So when I try to post a gif, why does it complain if it’s larger than my image upload limit?

Or if it is trying to upload it, is there any way to stop that? I don’t want the server full of gifs when they could just link to tenor.

I’m not using any plugins, just posting the URL, eg:

![](https://global.discourse-cdn.com/meta/original/4X/d/2/0/d2085f958cedd602802e28f24be8fa6b70b9c9b9.gif "I Will Protect You Guard GIF - I Will Protect You Guard Safeguard - Discover &...")

---

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [29 januari 2025 om 11:44 UTC](https://meta.discourse.org/t/image-larger-than-4mb-error-when-posting-a-gif/349540/3 "2025-01-29T11:44:02Z")

</div>

Yeah here it is. It does this quite often, I have to pick gifs that are smaller.

 ![The image is a screenshot of a Twitter post by "shauny" featuring a link to a media file that is larger than 6 MB, along with nested comments from the same and another user. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/c/8/d/c8d6d219b645b28b1e34f44be38c2b56f1fdbf54.jpeg)

---

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [29 januari 2025 om 11:44 UTC](https://meta.discourse.org/t/image-larger-than-4mb-error-when-posting-a-gif/349540/4 "2025-01-29T11:44:28Z")

</div>

I even changed the limit to 6MB and it doesn’t work despite the image being under 5

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [29 januari 2025 om 11:44 UTC](https://meta.discourse.org/t/image-larger-than-4mb-error-when-posting-a-gif/349540/5 "2025-01-29T11:44:43Z")

</div>

I had to read multiple times and try on my forum to understand.

If you post a large ~~gif~~ picture that isn’t downloaded, then it shows this:

![image](https://global.discourse-cdn.com/meta/original/4X/2/d/c/2dcee927db5ef2f1f4ecb8ef32ee778864fbe335.png)

My file size limit is 10 MB.

I don’t know what is the limit on meta, here’s the 50 MB gif:

[https://upload.wikimedia.org/wikipedia/commons/d/da/2022-01-15\_eruption\_of\_Hunga\_Tonga.gif(image larger than 10 MB)](https://upload.wikimedia.org/wikipedia/commons/d/da/2022-01-15_eruption_of_Hunga_Tonga.gif)

(ah, the file size limit on meta is 5 MB then)

---

<div class="post-metadata">

### Author: ![Shauny](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/shauny/32/362012_2.png) [@Shauny](https://meta.discourse.org/u/Shauny)
#### Post date: [29 januari 2025 om 11:45 UTC](https://meta.discourse.org/t/image-larger-than-4mb-error-when-posting-a-gif/349540/6 "2025-01-29T11:45:33Z")

</div>

Ok that’s fair but I’d like to allow a bit larger gifs to display. 6MB should be fine. But I increased the limit to 6 and it still says this error.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [29 januari 2025 om 11:47 UTC](https://meta.discourse.org/t/image-larger-than-4mb-error-when-posting-a-gif/349540/7 "2025-01-29T11:47:42Z")

</div>

> [@Shauny](#):
>
> 6MB should be fine. But I increased the limit to 6 and it still says this error.

Did you increase the limit in `app.yml` as well?

> [@Change the maximum attachment/upload size](https://meta.discourse.org/t/change-the-maximum-attachment-upload-size/26435):
>
> bookmark This guide explains how to change the maximum attachment upload size for self-hosted Discourse instances. person_raising_hand Required user level: System Admin The default attachment upload size limit is 10MB If you are self-hosting Discourse and need to allow uploads larger than 10 MB, follow the steps below. Changing the upload size Connect to your server: Use SSH to access your server’s command line interface. Edit the configuration file: Navigate to the configurati…

As the site setting’s description says:

> The maximum image upload size. This must be configured in nginx (client\_max\_body\_size) / apache or proxy as well. Images larger than this and smaller than client\_max\_body\_size will be resized to fit on upload.
