Abort Multipart File Upload
/files/abort/{path}
Terminates the multipart upload operation of a file and deletes all the uploaded parts.
Request
-
path(required):
Catalog path of the folder for which to terminate the multipart upload.
-
uploadId(required):
Upload ID of partial file upload initiation.
Response
204 Response
No Content
The file upload operation was terminated successfully.
500 Response
Internal Server Error.
Examples
The following example shows how to terminate a multi-part file upload operation. This action also deletes all the uploaded parts. This example uses cURL to access the REST API from a Windows shell script. As input, path parameters require the destination catalog path. Query parameters require an upload ID.
This operation is not valid unless you already initiated a multipart file upload using Create Multipart File Upload.
The calling user's ID and password are variables whose values are set in properties.bat.
Script with cURL Command
call properties.bat
curl -X DELETE "https://myserver.example.com:9001/essbase/rest/v1/files/abort/users/admin/datafile.txt?uploadId=56e02b99-59b5-458c-be2b-42417994522a" -u %User%:%Password%