Interface UploadedFile
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- StrutsUploadedFile
Virtual representation of an uploaded file used by 
MultiPartRequest- 
Method Details- 
lengthLong length()- Returns:
- size of the content of file/stream/array
 
- 
getNameString getName()- Returns:
- a local name of the file
 
- 
getOriginalNameString getOriginalName()- Returns:
- original file name from upload source
 
- 
isFileboolean isFile()- Returns:
- indicates if this is a real file or maybe just in-memory stream
 
- 
deleteboolean delete()- Returns:
- removes a local copy of the uploaded file/stream
 
- 
getAbsolutePathString getAbsolutePath()- Returns:
- an absolute path of the file if possible
 
- 
getContentObject getContent()- Returns:
- content of the upload file
 
- 
getContentTypeString getContentType()- Returns:
- content type of the uploaded file
 
- 
getInputNameString getInputName()Represents a name of the input file, eg.: "myFile" in case of- Returns:
- name of the input file field
- Since:
- 6.7.0
 
 
-