Class UploadFileRequest


  • public class UploadFileRequest
    extends Object
    Class that holds parameters for UploadFile request invocation.
    • Field Detail

      • path

        public String path
        Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
      • File

        public byte[] File
        File to upload
      • storageName

        public String storageName
        Storage name
    • Constructor Detail

      • UploadFileRequest

        public UploadFileRequest​(String path,
                                 byte[] file,
                                 String storageName)
        Initializes a new instance of the UploadFileRequest class.
        Parameters:
        path - Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
        file - File to upload
        storageName - Storage name