Method ReleaseFile
ReleaseFile(String, String)
Release (delete) an uploaded file. If a file with fileId
doesn't exist no exception is thrown.
Declaration
void ReleaseFile(string connectionId, string fileId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | fileId | The file id.See also UploadFileBytes(String, String, Byte[], Int32) |
Examples
POST http://YourServerName/InfoShare/Json/File/ReleaseFile
Example for release (delete) an uploaded file.{
"connectionId": "6750c3bd-2f8a-4beb-8f0f-25dc70340d71",
"fileId": "9e2009e6-0cde-e911-a947-00155d290a08"
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |