Package: django-chunked-upload
This simple django app enables users to upload large files to Django in multiple chunks, with the ability to resume if the upload is interrupted.This app is intented to work withJQuery-File-UploadbySebastian Tschan(documentation).License:MIT-Zero.DemoIf you want to see a very simple Django demo project using this module, please take a look atdjango-chunked-upload-demo.InstallationInstall via pip:pip install django-chunked-uploadAnd then add it to your DjangoINSTALLED_APPS:INSTALLED_APPS=(# ...'chunked_upload',)Typical usageAn initial POST request is sent to the url linked toChunkedUploadView(or any subclass) with the first chunk of the file. The name of the chunk file can be overriden in the view (class attributefield_name). Example:{"my_file": <File>}In return, server with response with theupload_id, the currentoffsetand the when will the upload expire (expires). Example:{
    "upload_id": "5230ec1f59d1485d9d7974b853802e31",
    "offset": 10000,
    "expires": "2013-07-18T17:56:22.186Z"
}Repeatedly POST subsequent chunks using theupload_idto identify the upload  to the url linked toChunkedUploadView(or any subclass). Example:{
    "upload_id": "5230ec1f59d1485d9d7974b853802e31",
    "my_file": <File>
}Server will continue responding with theupload_id, the currentoffsetand the expiration date (expires).Finally, when upload is completed, a POST request is sent to the url linked toChunkedUploadCompleteView(or any subclass). This request must include theupload_idand themd5checksum (hex). Example:{
    "upload_id": "5230ec1f59d1485d9d7974b853802e31",
    "md5": "fc3ff98e8c6a0d3087d515c0473f8677"
}If everything is OK, server will response with status code 200 and the data returned in the methodget_response_data(if any).Possible error responses:User is not authenticated. Server responds 403 (Forbidden).Upload has expired. Server responds 410 (Gone).upload_iddoes not match any upload. Server responds 404 (Not found).No chunk file is found in the indicated key. Server responds 400 (Bad request).Request does not containContent-Rangeheader. Server responds 400 (Bad request).Size of file exceeds limit (if specified).  Server responds 400 (Bad request).Offsets does not match.  Server responds 400 (Bad request).md5checksums does not match. Server responds 400 (Bad request).SettingsAdd any of these variables into your project settings to override them.CHUNKED_UPLOAD_EXPIRATION_DELTAHow long after creation the upload will expire.Default:datetime.timedelta(days=1)CHUNKED_UPLOAD_PATHPath where uploading files will be stored until completion.Default:'chunked_uploads/%Y/%m/%d'CHUNKED_UPLOAD_TOupload_toto be used in the Model’s FileField.Default:CHUNKED_UPLOAD_PATH +'/{{instance.upload_id}}.part'CHUNKED_UPLOAD_STORAGE_CLASSStorage system (should be a class).Default:None(use default storage system)CHUNKED_UPLOAD_ENCODERFunction used to encode response data. Receives a dict and returns a string.Default:DjangoJSONEncoder().encodeCHUNKED_UPLOAD_CONTENT_TYPEContent-Type for the response data.Default:'application/json'CHUNKED_UPLOAD_MAX_BYTESMax amount of data (in bytes) that can be uploaded.Nonemeans no limit.Default:NoneCHUNKED_UPLOAD_MODEL_USER_FIELD_NULLValue ofnulloption inuserfield ofChunkedUploadmodelDefault:TrueCHUNKED_UPLOAD_MODEL_USER_FIELD_BLANKValue ofblankoption inuserfield ofChunkedUploadmodelDefault:TrueSupportIf you find any bug or you want to propose a new feature, please use theissues tracker. I’ll be happy to help you! :-)