If you are on managed hosting, you should contact your hosting provider to change this setting. The below instructions only apply if you self host your own instance of Discourse.
Here is what you need to do to allow more than 10mb for attachments upload.
Connect to your server via SSH
Navigate to and edit the .yml config file
cd /var/discourse/ nano containers/app.yml
- Scroll down where it says this:
params: ## Which Git revision should this container use? (default: tests-passed)
upload_size: 20mbelow this. Be super careful with spaces. It should now look something like this:
params: ## Which Git revision should this container use? (default: tests-passed) version: tests-passed ## Maximum upload size (default: 10m) upload_size: 20m
After making changes press
Ctrl+X(to exit) and then
./launcher rebuild app
Once rebuild is complete, navigate to
/admin/site_settings/category/files and change the
max attachment size kb to
20480 (20mb) or your desired number. At this point everything should work perfectly, you can go on and test your upload file size.