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 - 飞鲨
honeymoose
(HoneyMoose)
September 12, 2023, 12:32am
2
Due to domain name adjustment, the above navigation link has been changed to: Discourse 修改上传附件的大小 - Discourse - iSharkFly .
1 Like
go_ahead
(go ahead)
September 12, 2023, 12:58am
3
It used to be all English, now there’s finally Chinese, great, I support it
xin_wang
(xin wang)
April 16, 2025, 6:31am
4
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.
xin_wang
(xin wang)
April 17, 2025, 2:06am
6
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.