问题
I've spent some days by now trying to figure out how to tell Django that my jQuery file uploader is sending chunks and not x seperate files.
I know that I need a custom FileUploadHandler
like here in this one.
My client-side code is posted in this question.
The plugin sends chunk by chunk as a separate AJAX call (at least with FireBug it looks like this). The server accepts every one of them and saves them under a different name (in my case "_1", "_2", "_3"... ). And yes, the handler is used. I proved it via print
BTW: The Content-Range
in the header is correct.
BTW II: This plugin unfortunately did not utilize chunking... so no solution here for me.
So, has anybody an idea what I might be doing wrong? I found some other FileUploadHandlers
but they all seem pretty similar. So I guess the problem is not here?
Thanks!
来源:https://stackoverflow.com/questions/17276669/jquery-file-uploader-django-not-working-correctly-with-chunks