fluxility / django-dropzone-field Goto Github PK
View Code? Open in Web Editor NEWA Django ImageField using a DropzoneWidget based on dropzone.js
A Django ImageField using a DropzoneWidget based on dropzone.js
When there are more fields presents and you try to submit a file to the second field, it will be added to the first field.
edit:
The file is not just added to the first field. On clicking an arbitrary dropzone field, every field is initiated. You will be presented a browse window for every field and can select an image for every field in order.
After a fixed number of uploads it might come in handy to remove the first upload this user has made.
Since Django 1.6 you have to use Field.empty_values
instead of validators.EMPTY_VALUES
.
This can be resolved by setting Field.empty_values
during init in case the attribute does not exist yet
Currently images are uploaded to the media folder, this way all images are publicly available. When you want to bind the images to users (#1) in such a way that only they can view it this is unwanted behaviour.
A TemporaryUpload is not bind to the user that uploaded the image. This has two downsides:
There should be an installer-file to be able to pip install
django-dropzone-field.
Currently the only way to learn how to use the field/widget is by looking at the example project. This should also be available in the README.
Currently the path to upload the images to is hardcoded in the javascript, this should be configurable or even automatically obtained.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.