Package ai.nightfall.scan.model
Class FileUpload
java.lang.Object
ai.nightfall.scan.model.FileUpload
An object representing a file upload.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the chunk size.Get the file ID.longGet the file size.Get the mime type.
-
Constructor Details
-
FileUpload
public FileUpload()
-
-
Method Details
-
getFileID
Get the file ID.- Returns:
- a unique ID representing this file
-
getFileSizeBytes
public long getFileSizeBytes()Get the file size.- Returns:
- the size of the file in bytes
-
getChunkSize
public long getChunkSize()Get the chunk size.- Returns:
- the number of bytes to use when uploading the file chunk-by-chunk
-
getMimeType
Get the mime type.- Returns:
- the RFC-2045 media type represented by this file
-