Change the max size of uploads/attachments | Discourse Modify upload attachment size

Discourse attachment upload size requires modifying the configuration file and restarting.

The official post is on: Change the maximum attachment/upload size - sysadmin - Discourse Meta.


The default upload size is 10 MB.

You need to add the parameter above to the Discourse configuration file and recompile.

After making the changes, navigate to the directory: /var/discourse and run the command:

./launcher rebuild app

to recompile.

Admin Control Panel Modification

Modifying only the configuration file above is not enough; you also need to adjust it within the admin control panel.


After completing the modifications, your Discourse will support larger attachment uploads.

If you have any other questions or need assistance, please visit our website (Chinese): iSharkFly - 飞鲨

Due to domain name adjustment, the above navigation link has been changed to: Discourse 修改上传附件的大小 - Discourse - iSharkFly.

1 Like

It used to be all English, now there’s finally Chinese, great, I support it :kissing:

We have to rebuild again, why does it take a rebuild every time we change something here, so troublesome

This is not entirely the case.

As long as the configuration is not modified, reconstruction is usually not necessary.

It’s just an Nginx configuration; I directly modified it inside the Docker container. In the future, if I need to change something else, I’ll rebuild it. For now, I’ll use it as is. Since it’s an internal network environment, rebuilding requires connecting to the external internet to pull updates, which is quite troublesome.