FileDropTarget extension with single and multi file selector support
FileDropTargetAndSelector is a UI component extension for Vaadin 8.1+.
!!! See also https://github.com/vaadin/framework/issues/9974 !!! Workaround with UI.setMobileHtml5DndEnabled(true); seems to work for now
It extends Vaadin's FileDropTarget (since 8.1) extension with file selector capability and uses the same api to transfer the selected file(s) to the server.
This extension simple uses following approach to get the selected file or files, and passes the FileList to Vaadin's FileDropTargetConnector: Using files from web applications
Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.
fixes drop state (fixes client side exception which prevents sending file immediately to server. Mouse move or other action was needed in order transfer was processed)
- Apache License 2.0
- Vaadin 8.8+
- Vaadin 8.1+ in 1.0.5
- Google Chrome
- Internet Explorer
- Microsoft Edge