jQuery file uploader - Django not working correctly with chunks

三世轮回 提交于 2019-12-24 01:52:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!