large json and files

15 views
Skip to first unread message

lindolfo caetano

unread,
Feb 25, 2016, 5:03:58 PM2/25/16
to Django users
I'm trying to send a json post for a view, but when it exceeds 50mb it does not work.
How configure django to receive post of large files and upload of a large files.

James Schneider

unread,
Feb 25, 2016, 7:24:08 PM2/25/16
to django...@googlegroups.com
On Thu, Feb 25, 2016 at 12:40 PM, lindolfo caetano <lindolf...@gmail.com> wrote:
I'm trying to send a json post for a view, but when it exceeds 50mb it does not work.
How configure django to receive post of large files and upload of a large files.

Without knowing your setup, it's hard to say. Normally the upload of files is handled by the web server and not Django directly. Do your web server logs mention the issue? It's possible there are upload limits within the server config.

You may also want to look into HTTP chunked transfer encoding, implemented via a JS library:  https://en.wikipedia.org/wiki/Chunked_transfer_encoding

Given that you are uploading a text file with many repeatable characters, you may find a large benefit with compression as well.

-James

Reply all
Reply to author
Forward
0 new messages