var request = new UploadFileRequest
{
Path = "/storage/path/to/file.ext",
File = new MemoryStream(File.ReadAllBytes("/local/file/system/path/to/file.ext")),
StorageName = "First Storage"
};
UploadFileRequest request = Models.uploadFileRequest()
.path("/storage/path/to/file.ext")
.file(IOUtils.toByteArray(new FileInputStream("/local/file/system/path/to/file.ext")))
.storageName("First Storage")
.build();
request = models.UploadFileRequest(
path='/storage/path/to/file.ext',
file='/local/file/system/path/to/file.ext',
storage_name='First Storage')
request = UploadFileRequest.new(
path: '/storage/path/to/file.ext',
file: File.new('/local/file/system/path/to/file.ext'),
storage_name: 'First Storage')
let request = Models.UploadFileRequest()
.path('/storage/path/to/file.ext')
.file(fs.readFileSync('/local/file/system/path/to/file.ext'))
.storageName('First Storage')
.build();
$request = Models::UploadFileRequest()
->path('/storage/path/to/file.ext')
->file(new SplFileObject('/local/file/system/path/to/file.ext'))
->storage_name('First Storage')
->build();