Skip to content
Myr

Restructure Upload Progress Bars

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- Removed dropzone.js, it hasn't been around long enough, maybe we need to update this in two years again. - jQuery should be a proper rst link.

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent 9a61e7d · Browse files · 1 file+8 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−10 removed

  • other:+8 added−10 removed

1 file+8 added−10 removed

modified:docs/patterns/fileuploads.rst+8 added-10 removed
166 unmodified lines
167client asks the server every 5 seconds how much it has transmitted168already. Do you realize the irony? The client is asking for something it169should already know.170171Now there are better solutions that work faster and are more reliable. There 172are JavaScript libraries like jQuery (http://jQuery.com) that have form plugins 173to ease the construction of progress bar. Another great option is dropzone.js 174(http://www.dropzonejs.com) that allows users to drag and drop files on to the 175page.176177171An Easier Solution172------------------173174Now there are better solutions that work faster and are more reliable. There175are JavaScript libraries like jQuery_ that have form plugins to ease the176construction of progress bar.177178Because the common pattern for file uploads exists almost unchanged in all182applications dealing with uploads, there is a Flask extension called183`Flask-Uploads`_ that implements a full fledged upload mechanism with184white and blacklisting of extensions and more.179applications dealing with uploads, there is also a Flask extension called180`Flask-Uploads`_ that implements a full fledged upload mechanism with white and181blacklisting of extensions and more.182183.. _jQuery: https://jquery.com/184.. _Flask-Uploads: http://pythonhosted.org/Flask-Uploads/