Package formflow.library.data
Class UserFile
java.lang.Object
formflow.library.data.UserFile
A class representing what an uploaded file which can be saved in either S3 or Azure
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFileInfo(UserFile userFile, String thumbBase64String) Creates a HashMap representation of an uploaded user file that holds information about the file (original file name, file size, thumbnail and mime type) which we add to the session for persisting user file uploads when a user refreshes the page or navigates away.booleaninthashCode()
-
Constructor Details
-
UserFile
public UserFile()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
createFileInfo
Creates a HashMap representation of an uploaded user file that holds information about the file (original file name, file size, thumbnail and mime type) which we add to the session for persisting user file uploads when a user refreshes the page or navigates away.- Parameters:
userFile- class representing the file the that was uploaded by the userthumbBase64String- base64 encoded thumbnail of the file the user uploaded- Returns:
- Hashmap representation of a user file that includes original file name, file size, thumbnail as base64 encoded string, and mime type.
-