Method UploadStreamChunks
UploadStreamChunks(String, String, String, Stream)
Upload a file directly to the server via streaming with chunks.
Declaration
string UploadStreamChunks(string connectionId, string fileId, string currentByte, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | fileId | The file id. Optional. |
System.String | currentByte | The current byte. Optional. |
System.IO.Stream | stream | The stream which holds the reference to the file. |
Returns
Type | Description |
---|---|
System.String | The Id of the created file. |
Remarks
The Content-Type header must be set to text/plain. The connection is passed in the URL, not in the body of the request.
Examples
Example for upload stream directStream as Body Postman example: Select Body => Binary => select file
Response:
{
"UploadStreamChunksResult": "9c5b60a2-3c07-4b21-bffc-73448a4c1843"
}