# Erreur « Image plus grande que 4 Mo » lors de l'envoi d'un gif

**URL:** https://meta.discourse.org/t/image-larger-than-4mb-error-when-posting-a-gif/349540
**Category:** Support
**Created:** [Janvier 29, 2025, 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:** 1
**Showing post:** 7

<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: [Janvier 29, 2025, 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](#):
>
> 6 Mo devrait être suffisant. Mais j’ai augmenté la limite à 6 et j’ai toujours cette erreur.

Avez-vous également augmenté la limite dans `app.yml` ?

> [@Change the maximum attachment/upload size](https://meta.discourse.org/t/change-the-maximum-attachment-upload-size/26435?u=cocoquark):
>
> 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…

Comme le dit la description du paramètre du site :

> La taille maximale de téléchargement des images. Ceci doit également être configuré dans nginx (client\_max\_body\_size) / apache ou proxy. Les images plus grandes que celle-ci et plus petites que client\_max\_body\_size seront redimensionnées pour s’adapter lors du téléchargement.

---

_[View the full topic](https://meta.discourse.org/t/image-larger-than-4mb-error-when-posting-a-gif/349540)._
