Directory

← Back

Upload Helper

Accept single and multi file uploads on every component for Vaadin 14+

Author

Rating

Popularity

100+

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

docs.f0rce.de/upload-helper

License

MIT 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);

Compatibility

(Loading compatibility data...)

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.1 (2024-01-31)

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
2024-01-31
Maturity
STABLE
License
MIT License

Compatibility

Framework
Vaadin 14
Vaadin 23
Browser
Browser Independent

Upload Helper - Vaadin Add-on Directory

Accept single and multi file uploads on every component for Vaadin 14+ Upload Helper - Vaadin Add-on Directory
# 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 [docs.f0rce.de/upload-helper](https://docs.f0rce.de/upload-helper) ## License [MIT License](https://github.com/F0rce/upload-helper/blob/master/LICENSE)
Online