MCPcopy Index your code
hub / github.com/simstudioai/sim / abortS3MultipartUpload

Function abortS3MultipartUpload

apps/sim/lib/uploads/providers/s3/client.ts:494–509  ·  view source on GitHub ↗
(
  key: string,
  uploadId: string,
  customConfig?: S3Config
)

Source from the content-addressed store, hash-verified

492 * Abort multipart upload for S3
493 */
494export async function abortS3MultipartUpload(
495 key: string,
496 uploadId: string,
497 customConfig?: S3Config
498): Promise<void> {
499 const config = customConfig || { bucket: S3_KB_CONFIG.bucket, region: S3_KB_CONFIG.region }
500 const s3Client = getS3Client()
501
502 const command = new AbortMultipartUploadCommand({
503 Bucket: config.bucket,
504 Key: key,
505 UploadId: uploadId,
506 })
507
508 await s3Client.send(command)
509}

Callers 2

createS3BackendFunction · 0.85
route.tsFile · 0.85

Calls 2

getS3ClientFunction · 0.85
sendMethod · 0.80

Tested by

no test coverage detected