No matter how I set it up, if I upload more than 100 megabytes, it gives me an error. It’s not really over 500 megabytes, but it still warns me that the file is too large.
I think the image max size 102400kb(100M) is hard coded in Discourse by design. The upload_size in app.yml is for configuring the nginx, you may want to configure the max attachment size kb setting which allows file size max to 1024000kb(1GB).
A 500MB image file rendered directly on the web page is horrible.
I’ve tried to change it to the maximum limit, but I still can’t upload MP4 files, and it keeps prompting me that I’ve exceeded the maximum limit for a 200MB file.
I’m trying to clean it all up and rebuild it.
./launcher cleanup
I suspected for a moment that there was some sort of caching thing going on so that rebuilding wouldn’t change the size of the uploaded file. Tried everything I could find for three days. But the attachment size is still at 100m and I never set it to 100m I set it to 500m in the first place because I had some videos I wanted to be able to upload.
I also think that Discourse is not using a php environment. But the problem is that Discourse has set an upload limit of 500mb.
But in reality it’s not possible to upload more than 100mb.
I suspect the problem is related to the logic of the discourse system. Even though I have changed the “upload_size” parameter in “app.yml” to allow uploading files up to 500mb, the image upload limit is still capped at 102400kb, which is equivalent to only 100MB.
I am now uploading a 101mb video, it won’t even upload, it will prompt that the file exceeds the 500mb limit.