com.vaadin.flow.server.streams.

Class TemporaryFileFactory

java.lang.Object
com.vaadin.flow.server.streams.TemporaryFileFactory

All Implemented Interfaces:

FileFactory, Serializable

public class TemporaryFileFactory extends Object implements FileFactory

File factory to generate a temporary file for given file name

Since:

24.8

See Also:

  • Constructor Details

    • TemporaryFileFactory

      public TemporaryFileFactory()
  • Method Details

    • createFile

      public File createFile(UploadMetadata uploadMetadata) throws IOException

      Create a new temporary file for filename. Adds the suffix .tmp

      Specified by:

      createFile in interface FileFactory

      Parameters:

      uploadMetadata - metadata for upload that should get a file created

      Returns:

      File that should be used

      Throws:

      IOException