Method UploadStreamDirect
UploadStreamDirect(String, Stream)
Upload a file directly to the server via streaming.
Declaration
string UploadStreamDirect(string connectionId, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
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 direct Response:{
"UploadStreamDirectResult": "9c5b60a2-3c07-4b21-bffc-73448a4c1843"
}