I was trying to upload a data file of around 600 MB in my project which is hosted in digital ocean. It tries to upload but 502 Bad Gateway Nginx error is shown.
While the upload completely works fine on my local syste...
My Project files are in the root directory.
The settings.py of my project is
STATICURL = '/static/'
MEDIAURL = '/media/'
STATICROOT = '/root/static'
This seems like a long shot but are you sure you are using the proper ownership and permissions. I think the issue might be exactly ownerships. Since Nginx is not using root but another group and us...