You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My POST request from resumable.js looks like this:
<WSGIRequest: POST '/demo/resumable_upload?resumableChunkNumber=1&resumableChunkSize=1048576&resumableCurrentChunkSize=694&resumableTotalSize=694&resumableType=text%2Fplain&resumableIdentifier=694-readmetxt&resumableFilename=readme.txt&resumableRelativePath=readme.txt&resumableTotalChunks=1&content_type_id=application%2Foctet-stream&field_name=file'>
But
print (request.POST)
<QueryDict: {}>
The code fails in get_chunks_upload_to in the line
ct_id = request.POST['content_type_id']
with
Traceback (most recent call last):
django.utils.datastructures.MultiValueDictKeyError: 'content_type_id'
The text was updated successfully, but these errors were encountered:
django does not fill POST dictionary for non-forms since version 1.5
https://docs.djangoproject.com/en/2.2/ref/request-response/#django.http.HttpRequest.POST
My POST request from resumable.js looks like this:
<WSGIRequest: POST '/demo/resumable_upload?resumableChunkNumber=1&resumableChunkSize=1048576&resumableCurrentChunkSize=694&resumableTotalSize=694&resumableType=text%2Fplain&resumableIdentifier=694-readmetxt&resumableFilename=readme.txt&resumableRelativePath=readme.txt&resumableTotalChunks=1&content_type_id=application%2Foctet-stream&field_name=file'>
But
print (request.POST)
<QueryDict: {}>
The code fails in get_chunks_upload_to in the line
ct_id = request.POST['content_type_id']
with
Traceback (most recent call last):
django.utils.datastructures.MultiValueDictKeyError: 'content_type_id'
The text was updated successfully, but these errors were encountered: