Giter Club home page Giter Club logo

django2-resumable's Issues

django does not fill POST dictionary for non-forms since version 1.5

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'

Mention of original project, Instruction to use this repo with pip

It is obvious that this project is heavily inspired by https://github.com/jeanphix/django-resumable
It would be fair to at least mention the original project.
Also you have fixed some bugs and I consider using your project instead of the original one that seems unmaintained.
Could you update the instruction in the readme to install through pip pip install git+https://github.com/leriomaggio/django-resumable.git
Maybe consider renaming this project and register it in pipy to avoid confusion

[enhancement] Make resumable target url configurable in file_input.html

Documentation shows how to add different restrictions (like login_required or staff_member_required) to the standard resumable upload url.

The current widget template, though, only supports "resumable-upload" view. It would be nice to have a target parameter in the widget (or even in the field? Unsure about this) for configuring a different endpoint.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.