com.vaadin.flow.component.upload.receivers.

Interface FileFactory

All Superinterfaces:

Serializable

All Known Implementing Classes:

TemporaryFileFactory

public interface FileFactory extends Serializable

File factory interface for generating file to store the uploaded data into.

  • Method Summary

    Modifier and Type
    Method
    Description
    createFile(String fileName)

    Create a new file for given file name.

  • Method Details

    • createFile

      File createFile(String fileName) throws IOException

      Create a new file for given file name.

      Parameters:

      fileName - file name to create file for

      Returns:

      File that should be used

      Throws:

      IOException