Django cutting off uploaded file
Turns out it was a "feature" of the client-side AJAX package we were using (flow.js) and we just had to increase chunkSize.
I'm making a Django app in which a user can upload a file (an image) using AJAX.
While developing locally, I saw that PIL, which I used to process the image after upload, had a bug. After investigating I found out it's because PIL is getting the file data cut off. It's only getting the first 1MB of the file, which is why it's failing. (The file is around 3MB.)
Why could this be, and how can I solve it? My immediate suspicion is that runserver, which I use locally, caps AJAX uploads for some reason. But I can't be sure. And if it does, I don't know how to make it stop.
Can anyone help?