Class FileUpload

java.lang.Object
ai.nightfall.scan.model.FileUpload

public class FileUpload extends Object
An object representing a file upload.
  • Constructor Details

    • FileUpload

      public FileUpload()
  • Method Details

    • getFileID

      public UUID 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

      public String getMimeType()
      Get the mime type.
      Returns:
      the RFC-2045 media type represented by this file