Error - Size exceeds the maximum allowed file size

Hello,

Screenshot from 2024-05-21 15-56-24

When I am uploading the file, I am getting the error “Size exceeds the maximum allowed file size.”

The file size is 2 MB then also it throws an error.

Hi @Foram
Please Read This Document.

https://frappeframework.com/docs/user/en/desk/attachments#:~:text=A%20limit%20of%2010MB%20is,in%20your%20site’s%20configuration%20file.

Thank You!

I have uploaded the file 1.9 MB.

I have already tried this solution, but its not working.

Looks like an nginx issue. If you’re using docker, find the “CLIENT_MAX_BODY_SIZE” arg in the compose file and change it to 1000m. Rebuild the container and it will be solved.

No, I am not using docker