Feature #3141
opendropzone implementation
0%
Description
I'd like to see dropzone support added, as used by most modern web applications. As an example this link: http://www.dropzonejs.com/ (I'm not affiliated with this project, but I can hardly just add a link to facebook or google :-)
Files
Updated by Daniel McRobb about 10 years ago
- File uploader.tgz uploader.tgz added
I attached what I'm using for drag and drop uploads. It's not generic since it's deep inside my gallery software, but hopefully it provides enough information for whatever the Wt team would like to do.
My DropUpload class inherits from WLabel, mostly because it made it easy for me to get the styling behavior I wanted. The UploadResource class will look familiar.
Only works with javascript. Barebones, the client-side code would be quite simple. Only really need the drop handler that appends to FormData and sends using XHR. The server side is not significantly different than what's done in WFileUpload.
There's some extra stuff in the code for handling drop type uri-list. I need that for my use cases, but all it does is send the URIs to the server. Could just be removed.
Delete or modify the Syslog stuff. I didn't include the code for that since it's in my own separate C library. And all of my servers are FreeBSD so I haven't checked portability.
Updated by Koen Deforche about 10 years ago
- Status changed from New to InProgress
- Assignee set to Koen Deforche
Updated by Rene A over 9 years ago
Would you mind providing us with the JavaScript, js file as well as the css.
Thanks