What is the max image upload size limit by file type

AI-generated summary

The discussion revolves around determining the maximum image upload size limit in Discourse, particularly for different file types in the Photography forum. Avyva shares testing results showing varying upload limits—30MB for PSD files and 40-53MB for PNGs—with inconsistent behavior, including timeouts and download links instead of image previews. They seek a definitive answer on whether Discourse has a default file size limit per file type or if users must experiment with smaller sizes. Omarfilip clarifies that image and non-image attachments have separate settings in the Admin panel under /admin/site_settings/category/files and references a related topic. Avyva confirms that accessing the admin settings provided the necessary information, though they only have leader privileges and needed help from a moderator.

We have gotten questions on what the maximum size an image upload can be in our Discourse Photography forum and it has resulted in inconsistent opinions.

It appears that the size of files that can be uploaded depends on file type (and possibly other factors as well).

I tested a large .Psd file and received a message saying

Sorry, the file you are trying to upload is too big (maximum size is 30000Kb)

I then reduced the image to 29.9 M and was presented with the same message, It seems 28.9M worked but rather than displaying the image it gave a link to download the image.

For a .PNG file, 53.1M triggered a timeout error but 40.4M worked fine. My testing what works for me is all well and good but I am wondering if I can with confidence test all the file types and say my results will be valid for the other users (we are talking about direct upload, not an upload through e-mail which causes its own issues).

So, basically the answer I am looking for is:

A. Is there a default limit set in the Discourse software that determines what the file size limit is for each image file type that we can provide the users with.

or

B. Is it that the only answer we can give is to keep trying to upload smaller and smaller sizes until something works (we are trying to encourage the users to share their images and it is causing frustration)

Note that image and non-image attachments have separate settings in the Admin:
/admin/site_settings/category/files

Also see this topic:

Thanks for the reply,

I only have leader privileges, I will try to convince one of the volunteer admin level moderators to check the path you provided.

We are not concerned with changing the file size allowed, we only want to be able to tell the users what number to stay under to be able to upload images.


Update, the Admin path provided the information we needed