Skip to main content

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.

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:

{{ dropzone.load() }}

You can assign the version of Dropzone.js through version argument, the default value is 5.1.1. Step 3: Creating a Drop Zone with create():

{{ dropzone.create(action_view=’upload_view’) }}

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 Github page , which you can check for more details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-Dropzone-1.4.1.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Flask_Dropzone-1.4.1-py2.py3-none-any.whl (5.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file Flask-Dropzone-1.4.1.tar.gz.

File metadata

File hashes

Hashes for Flask-Dropzone-1.4.1.tar.gz
Algorithm Hash digest
SHA256 510610efa3b619907f5f8d98751e88e4330f1176853d184b123c39b82bb05ac4
MD5 99569249e67f112a8645e71c7c290fbc
BLAKE2b-256 9f2427d7fca62044eeb71f3122154a52515f06be803639296682ba38b2f02f81

See more details on using hashes here.

File details

Details for the file Flask_Dropzone-1.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Flask_Dropzone-1.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b616f6174a73f8fc089f1f8d28eaa89eb846233ce349a7288eab50c3bb41dde9
MD5 575767b135437e3f7103652786abdff5
BLAKE2b-256 e78c042180ae0894260d3fae5b0b587f9669e86e2694c23d11a5006de519906b

See more details on using hashes here.

Release history Release notifications | RSS feed

2.0.0

2 files

1.6.0

2 files

1.5.4

2 files

1.5.3

2 files

1.5.2

2 files

1.5.1

2 files

1.5.0

2 files

1.4.6

2 files

1.4.4

2 files

1.4.3

2 files

1.4.2

2 files

This release

1.4.1 This release

2 files

1.4

1 file

1.3

1 file

1.2

1 file

1.1

1 file

1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page