FileItem

FileItem represents an uploaded File using the FileUploadControl. The FileItem contains basic information regarding the file including the file name, file size and error status

Further documentation.

FileItem Functions

getErrorMessage FileItem.getErrorMessage( ) Returns the failure error message if the file fails to upload
getFileName FileItem.getFileName( ) Returns the file name of the file that is saved as on the server.
getFilePath FileItem.getFilePath( ) Returns the full path to the uploaded filename on the server
getFileSize FileItem.getFileSize( ) Returns the original file size of the file that the user uploaded.
hasError FileItem.hasError( ) Returns true if the file fails to upload
getRelativePath FileItem.getRelativePath( ) Returns the relative path to the uploaded filename and the relative path to the base upload directory
getStatus FileItem.getStatus( ) Returns the status of the file upload.
getUserFileName FileItem.getUserFileName( ) Returns the original file name of the file that the user uploaded.