BoxClient.CreateFileAsync(Byte[], String, String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create file
public virtual System.Threading.Tasks.Task<Azure.Connectors.Sdk.Box.Models.BlobMetadata> CreateFileAsync(byte[] input, string folderPath, string fileName, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateFileAsync : byte[] * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Box.Models.BlobMetadata>
override this.CreateFileAsync : byte[] * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Connectors.Sdk.Box.Models.BlobMetadata>
Public Overridable Function CreateFileAsync (input As Byte(), folderPath As String, fileName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of BlobMetadata)
Parameters
- input
- Byte[]
The request body.
- folderPath
- String
Folder Path
- fileName
- String
File Name
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The Create file response.
Remarks
Uploads a file to Box.