Flask-Dropzone
Flask-Dropzone packages Dropzone.js into an extension to add file upload support for Flask. It can create links to serve Dropzone from a CDN and works with no JavaScript code in your application.
NOTICE: This extension is built for simple usage, if you need more flexibility, please use Dropzone.js directly.
Basic Usage
Step 1: Initialize the extension:
from flask_dropzone import Dropzone
dropzone = Dropzone(app)
Step 2: In your <head> section of your base template add the following code:
<head>
{{ dropzone.load_css() }}
</head>
<body>
...
{{ dropzone.load_js() }}
</body>
You can assign the version of Dropzone.js through version argument, the default value is 5.2.0. Step 3: Creating a Drop Zone with create(), and configure it with config():
{{ dropzone.create(action='the_url_which_handle_uploads') }}
...
{{ dropzone.config() }}
Also to edit the action view to yours.
Beautify Dropzone
Style it according to your preferences through style() method:
{{ dropzone.style('border: 2px dashed #0087F7; margin: 10%; min-height: 400px;') }}
More Detail
Go to Documentation , which you can check for more details.
Metadata
Release files for Flask-Dropzone 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Flask-Dropzone-2.0.0.tar.gz | 47.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Flask_Dropzone-2.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 93.9 kB
Release files / Flask-Dropzone-2.0.0.tar.gz
| Download URL | Flask-Dropzone-2.0.0.tar.gz |
|---|---|
| Size | 47.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99e116db81d598438e8a985694f7748937315f99ed4c9f4a620b75a97c59ab8e
|
|
BLAKE2b-256 checksum How to use checksums |
02771d3f061d38460346e703399251f5fef3b820306f8dad5d8a4f8d3aae32b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Release files / Flask_Dropzone-2.0.0-py2.py3-none-any.whl
| Download URL | Flask_Dropzone-2.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 46.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
332582669358c9ffda10a96fc986c65b993483cb87a4d7536e4256244f0e3a15
|
|
BLAKE2b-256 checksum How to use checksums |
ca275c26b675fc1552447e0f4ad46ec02ccdf3597c4b423ff6c9edb1d8bcb9bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.13
|
Security for Flask-Dropzone 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.