示例#1
0
 /// <summary>
 /// Uploads a file.
 /// </summary>
 public Task <FileObjectResponse> UploadFileAsync(FileToUpload fileToUpload)
 => SendPostMultipartFormAsync <FileToUpload, FileObjectResponse>("upload", fileToUpload);
示例#2
0
 /// <inheritdoc cref="FilesClient.UploadFileAsync(FileToUpload)"/>
 public Task <FileObjectResponse> UploadFileAsync(FileToUpload fileToUpload)
 => Files.UploadFileAsync(fileToUpload);