I did this to see how I could integrate dropzone.js (
http://www.dropzonejs.com/ ) with web2py as I'm thinking of using it in some of my projects.
Hopefuly it can be useful to someone else.
In this demo you have:
- drop files in an area of the page to upload them.
- CSFR protection (if someone could validate it, that'd be great, I'm no security expert).
- Fallback html form working along side dropzone.
- List files the user already uploaded, interact with them the same way you do with files you have just uploaded.
- Delete files.
- Thumbnails.
- Demonstration of how to compute filesize of an upload.
- Uploads progress bar.
Any comments, or bug reports, you guys may make are appreciated and welcomed.