Is there a way to upload a very large file using django on nginx?

I use django to run my site and nginx for the front web server,

but when I upload a very large file to my site,

I am very long

something is wrong when nginx manually uploads a large file,

nginx will send the file to django after receiving all of my message file;

so it will take me more time;

I want to find another web server to replace nginx;

Would you like to suggest?

+5
source share
4 answers

Your problem is not in nginx, the problem is in nginx settings.

If you want to process files using django - you have to change some parameters

Timeout when downloading a large file?

Else nginx can process the files themselves

http://www.grid.net.ru/nginx/upload.en.html

+1

Nginx, , HTTP-, . ftp nfs.

0

If you do not want to transfer the file to your django application, you should use: fastcgi_pass_request_body off;

You can also use the download module: http://www.grid.net.ru/nginx/upload.en.html

0
source

Look at the tornado at http://www.tornadoweb.org/ You can use it next to loading the django and handle file.

In my project, I successfully use django with a tornado that handles API calls and long ajax requests.

-1
source

All Articles