Interface UploadedFile
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
StrutsUploadedFile
Virtual representation of an uploaded file used by
MultiPartRequest
-
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
-