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.server.streams.
Package com.vaadin.flow.server.streams
Class FileUploadHandler
java.lang.Object
com.vaadin.flow.server.streams.TransferProgressAwareHandler<UploadEvent,R>
com.vaadin.flow.server.streams.AbstractFileUploadHandler<FileUploadHandler>
com.vaadin.flow.server.streams.FileUploadHandler
All Implemented Interfaces:
Upload handler that stores the data into a file generated by the given
FileFactory
.
Since:
24.8
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileUploadHandler
(FileUploadCallback successCallback, FileFactory fileFactory) Constructor for file upload handler.
-
Method Summary
Methods inherited from class com.vaadin.flow.server.streams.AbstractFileUploadHandler
getTransferContext, handleUploadRequest
Methods inherited from class com.vaadin.flow.server.streams.TransferProgressAwareHandler
addTransferProgressListener, getListeners, notifyError, onProgress, onProgress, onProgress, onProgress, whenComplete, whenComplete, whenStart, whenStart
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.flow.server.streams.ElementRequestHandler
getDisabledUpdateMode, getUrlPostfix, isAllowInert
Methods inherited from interface com.vaadin.flow.server.streams.UploadHandler
getFileCountMax, getFileSizeMax, getRequestSizeMax, handleRequest, responseHandled
-
Constructor Details
-
FileUploadHandler
Constructor for file upload handler.
Parameters:
successCallback
- consumer to be called when upload successfully completesfileFactory
- factory for generating file to write to
-