We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.upload.
Package com.vaadin.flow.component.upload
Interface Receiver
All Superinterfaces:
All Known Subinterfaces:
All Known Implementing Classes:
FileBuffer
, MemoryBuffer
, MultiFileBuffer
, MultiFileMemoryBuffer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface that must be implemented by the upload receivers to provide the Upload component an output stream to write the uploaded data.
Author:
Vaadin Ltd.
-
Method Summary
Modifier and TypeMethodDescriptionreceiveUpload
(String fileName, String mimeType) Invoked when a new upload arrives.
-
Method Details
-
receiveUpload
Invoked when a new upload arrives.
Parameters:
fileName
- the desired filename of the upload, usually as specified by the clientmimeType
- the MIME type of the uploaded fileReturns:
stream to which the uploaded file should be written
-