org.apache.tapestry5.upload.services

## Interface UploadedFile

- All Known Implementing Classes:
    UploadedFileItem

      public interface UploadedFile

  Represents an uploaded file.
  See Also:
    `Upload`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getContentType()`
    `String` | `getFileName()`
    `String` | `getFilePath()`
    `long` | `getSize()`
    `InputStream` | `getStream()`
    `boolean` | `isInMemory()`
    `void` | `write(File file)` Writes the content of the file to a known location.

- - ### Method Detail

    - #### getContentType

          String getContentType()

      Returns:
        the MIME type specified when the file was uploaded.

    - #### getFileName

          String getFileName()

      Returns:
        the name of the file that was uploaded.

    - #### getFilePath

          String getFilePath()

      Returns:
        the complete path, as reported by the client browser.

    - #### getSize

          long getSize()

      Returns:
        the size, in bytes, of the uploaded content.

    - #### getStream

          InputStream getStream()

      Returns:
        an input stream of the content of the file.

    - #### isInMemory

          boolean isInMemory()

      Returns:
        true if the uploaded content is in memory.

    - #### write

          void write(File file)

      Writes the content of the file to a known location.
      Parameters:
        `file` - Location to write file to

5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.