org.apache.struts2.dispatcher.multipart

## Interface UploadedFile

- All Superinterfaces:
    Serializable
  All Known Implementing Classes:
    StrutsUploadedFile

      public interface UploadedFile
      extends Serializable

  Virtual representation of a uploaded file used by `MultiPartRequest`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and 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 Detail

    - #### length

          Long length()

    - #### getName

          String getName()

    - #### getOriginalName

          String getOriginalName()

    - #### isFile

          boolean isFile()

    - #### delete

          boolean delete()

    - #### getAbsolutePath

          String getAbsolutePath()

    - #### getContent

          Object getContent()

    - #### getContentType

          String getContentType()

    - #### 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

Copyright © 2000–2025 Apache Software Foundation. All rights reserved.