Skip to main content

Abort multipart upload

Aborts the multipart uploading of the object

Function AbortMultipartUpload(Val Name, Val Bucket, Val BasicData, Val UploadID, Val Headers = Undefined, Val Directory = False) Export

ParameterCLI optionTypeRequiredDescription
Name--nameStringName of the object in the bucket
Bucket--bucketStringName of the bucket to put the object
BasicData--basicStructure Of KeyAndValueBasic request data. See GetBasicDataStructure
UploadID--uploadStringUpload ID. See InitPartsUpload
Headers--headersMap Of KeyAndValueAdditional request headers, if necessary
Directory--dirBooleanTrue > Path style URL, False > Virtual hosted style URL

Returns: Structure Of KeyAndValue - serialized JSON response from storage

tip

Method at AWS documentation: AbortMultipartUpload

This is a service method. A PutObject method is intended for the common scenario of files uploading


1C:Enterprise/OneScript code example
    URL       = "s3.openintegrations.dev";
AccessKey = "bayselo...";
SecretKey = "12we34...";
Region = "BTC";

BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);

Name = "fileChunked.mp3";

Directory = True; // Formation URL in path-style
Bucket = "w567hjy1";
Start = OPI_S3.InitPartsUpload(Name, Bucket, BasicData, , Directory);
UploadID = Start["response"]["InitiateMultipartUploadResult"]["UploadId"];

Result = OPI_S3.AbortMultipartUpload(Name, Bucket, BasicData, UploadID, , Directory);
    # JSON data can also be passed as a path to a .json file

oint s3 AbortMultipartUpload \
--name "fileChunked.mp3" \
--bucket "b1a7b6e9" \
--basic "{'URL':'s3.openintegrations.dev','AccessKey':'***','SecretKey':'***','Region':'BTC','Service':'s3'}" \
--upload "MGI2Y2U2YTAtMDYxZC00NzkwLTk3YmEtOTM0NDY2MWFjZGYwLjA1MDYyNDEwLTVkN2UtNDViMC05MTAzLThhYWIxYWNjODUzN3gxNzc0NDIxNTg5MDY4ODg4NzY2" \
--dir true
Result
{
"status": 204,
"response": {},
"headers": {
"Accept-Ranges": "bytes",
"Vary": "Accept-Encoding",
"Server": "Microsoft-IIS/10.0",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Amz-Id-2": "dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8",
"X-Amz-Request-Id": "18A00B852686D4D3",
"X-Content-Type-Options": "nosniff",
"X-Ratelimit-Limit": "6432",
"X-Ratelimit-Remaining": "6432",
"X-XSS-Protection": "1; mode=block",
"X-Powered-By": "ARR/3.0",
"Date": "Wed, 25 Mar 2026 09:28:39 GMT"
}
}