Shauny
(Shaun Robinson)
January 29, 2025, 11:28am
1
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:
Shauny
(Shaun Robinson)
January 29, 2025, 11:44am
3
Yeah here it is. It does this quite often, I have to pick gifs that are smaller.
Shauny
(Shaun Robinson)
January 29, 2025, 11:44am
4
I even changed the limit to 6MB and it doesn’t work despite the image being under 5
Canapin
(Coin-coin le Canapin)
January 29, 2025, 11:44am
5
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:
My file size limit is 10 MB.
I don’t know what is the limit on meta, here’s the 50 MB gif:
(ah, the file size limit on meta is 5 MB then)
Shauny
(Shaun Robinson)
January 29, 2025, 11:45am
6
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.
1 Like
Canapin
(Coin-coin le Canapin)
January 29, 2025, 11:47am
7
Did you increase the limit in app.yml
as well?
This guide explains how to change the maximum attachment upload size for self-hosted Discourse instances.
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.
1 Like