Upload Helper
Accept single and multi file uploads on every component for Vaadin 14+
Upload-Helper for Vaadin 14+
Accept single and multi file uploads on every component for Vaadin 14+
This component is based on Vaadin's own Upload component and can be used in the same way.
Documentation
License
Sample code
ByteArrayOutputStream buffer = new ByteArrayOutputStream(65536); class FileReceiver implements UHReceiver { @Override public OutputStream receiveUpload(String fileName, String mimeType) { buffer.reset(); return buffer; } } TextField tf = new TextField("TestValue"); tf.setWidth("300px"); UploadHelper uploadHelper = new UploadHelper(tf, new FileReceiver()); uploadHelper.addSucceededListener(inEvent -> { System.out.println(inEvent.getFileName() + " " + inEvent.getMIMEType() + " " + inEvent.getContentLength()); tf.setValue(buffer.toString()); }); add(uploadHelper, tf);
Links
Compatibility
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.
Version
1.1.0 (2022-04-21)
Changelog
If you find this component usefull, I would really appreciate a rating here or a star on the GitHub Repository.
For Issues and Feature Requests please visit upload-helper/issues on GitHub.
- Released
- 2022-04-21
- Maturity
- STABLE
- License
- MIT License
Compatibility
- Framework
- Vaadin 14
- Vaadin 23
- Browser
- Browser Independent