Skip to content
This repository was archived by the owner on Sep 14, 2025. It is now read-only.

add operation to abort multipart upload#784

Open
ad-m wants to merge 1 commit into
jamhall:mainfrom
ad-m:abort-upload
Open

add operation to abort multipart upload#784
ad-m wants to merge 1 commit into
jamhall:mainfrom
ad-m:abort-upload

Conversation

@ad-m
Copy link
Copy Markdown
Contributor

@ad-m ad-m commented Oct 23, 2021

I have noted missing operation to abort multipart upload. That operation does not have response, so it's very easy to implement.

Comment thread lib/controllers/object.js
Comment on lines +815 to +819
await ctx.store.abortUpload(
ctx.params.bucket,
ctx.params.key,
ctx.query.uploadId,
ctx.headers,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why to pass unused (key & headers) ?

Comment thread lib/controllers/object.js
ctx.query.uploadId,
ctx.headers,
);
ctx.body = '';
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will need to set status too (204)

@ferhatelmas
Copy link
Copy Markdown

@jamhall is it possible to make a release with this ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants