Package org.apache.struts2.dispatcher.multipart

# Interface UploadedFile

All Superinterfaces:
  `Serializable`

All Known Implementing Classes:
  `StrutsUploadedFile`

public interface UploadedFile extends Serializable
Virtual representation of an uploaded file used by `MultiPartRequest`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `delete()`
  `String`
  `getAbsolutePath()`
  `Object`
  `getContent()`
  `String`
  `getContentType()`
  `String`
  `getInputName()`
  Represents a name of the input file, eg.: "myFile" in case of
  `String`
  `getName()`
  `String`
  `getOriginalName()`
  `boolean`
  `isFile()`
  `Long`
  `length()`

- ## Method Details

  - ### length

    Long length()
    Returns:
      size of the content of file/stream/array

  - ### getName

    String getName()
    Returns:
      a local name of the file

  - ### getOriginalName

    String getOriginalName()
    Returns:
      original file name from upload source

  - ### isFile

    boolean isFile()
    Returns:
      indicates if this is a real file or maybe just in-memory stream

  - ### delete

    boolean delete()
    Returns:
      removes a local copy of the uploaded file/stream

  - ### getAbsolutePath

    String getAbsolutePath()
    Returns:
      an absolute path of the file if possible

  - ### getContent

    Object getContent()
    Returns:
      content of the upload file

  - ### getContentType

    String getContentType()
    Returns:
      content type of the uploaded file

  - ### getInputName

    String getInputName()
    Represents a name of the input file, eg.: "myFile" in case of
    Returns:
      name of the input file field
    Since:
      6.7.0