About
The following APIs allow you to upload files using various techniques. After the file is uploaded, a handle (uid) is returned and can be used in other APIs that accept exfile files.
Upload a File in Request Body
action: api/v2/file/uploadRequestBody token string name string request body: binary file data response: JSON { "uid": "1u7uhaVplPQngyAADXV1lf", "name": "notice.txt", "type": "text/plain", "size": 486 }
Upload a File in Multipart Form Data
action: api/v2/file/uploadMultipartFormData token string file file response: JSON { "uid": "1u7uhaVplPQngyAADXV1lf", "name": "notice.txt", "type": "text/plain", "size": 486 }
Upload a File from a URL
action: api/v2/file/uploadUrl token string url string name string response: JSON { "uid": "1u7uhaVplPQngyAADXV1lf", "name": "notice.txt", "type": "text/plain", "size": 486 }
Delete a File
action: api/v2/file/delete token string uploadedFile domain(UploadedFile) response: empty
Download a File
action: api/v2/file/download token string uploadedFile domain(UploadedFile) response: binary
Comments
Article is closed for comments.