1👍
✅
What frontend server do you use (Apache, nginx)? You need to check it settings.
EDIT: If you’re using nginx you need something like this:
server {
listen 80;
server_name example.com;
client_max_body_size 64m;
}
For apache something like so:
upload_max_filesize = 64M
post_max_size = 64M
You could check that the problem is with the frontend server by:
- run
./manage.py runserver 0.0.0.0:8000
on production server – this runs ‘developer’ server on port 8000 and allows to connect from your computer - go to
yourdoamin.com:8000
and try to upload a large file. It should work fine.
Source:stackexchange.com