You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.upload.

Interface Receiver

    • Method Detail

      • receiveUpload

        OutputStream receiveUpload​(String fileName,
                                   String mimeType)

        Invoked when a new upload arrives.

        Parameters:

        fileName - the desired filename of the upload, usually as specified by the client

        mimeType - the MIME type of the uploaded file

        Returns:

        stream to which the uploaded file should be written