💬 Commented on "Unable to upload a file even though its size is within the set limit.文件大小是符合要求的,但上传失败了。": dosubot[bot] "<!-- Greeting -->
Hi @Pisces-Moze! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the misskey team.
<!-- Answer -->
The backend enforces the file upload size limit using both the config file inside the running container and the user's role template—the lower value is always used. If the config file still has a smaller value (like 50MB), uploads above that will fail, even if the control panel shows a higher limit. With Docker deployments, the config file may be overwritten or not updated as expected, so make sure the running container's config file actually has `maxFileSize` set to 600MB (in bytes), and restart the container after making changes. Also, check that your deployment method isn't restoring an old config on restart. The backend will reject uploads exceeding the enforced limit and return a "file size exceeded" error to the client, as seen in the code and recent issues [[source](https://github.com/misskey-dev/misskey/issues/16549)] [[source](https://github.com/misskey-dev/misskey/blob/218070eb13ffd1d8becaba0924a129e6499a075e/packages/backend/src/server/api/endpoints/drive/files/create.ts)].
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/35fa3d4e-f243-40d2-943f-dca538e0f910?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/35fa3d4e-f243-40d2-943f-dca538e0f910?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/35fa3d4e-f243-40d2-943f-dca538e0f910?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/35fa3d4e-f243-40d2-943f-dca538e0f910?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/35fa3d4e-f243-40d2-943f-dca538e0f910?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/35fa3d4e-f243-40d2-943f-dca538e0f910?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/35fa3d4e-f243-40d2-943f-dca538e0f910?feedback_type=other)</sup> [](https://app.dosu.dev/674897ba-829a-43bd-99d2-7591489b04aa/ask?utm_source=github) [](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/misskey-dev/misskey/issues/16583)"
https://github.com/misskey-dev/misskey/issues/16583#issuecomment-3334752893
If you have a fediverse account, you can quote this note from your own instance. Search https://mi.osamu-storage.info/notes/ad350nswqpkx01a5 on your instance and quote it. (Note that quoting is not supported in Mastodon.)