You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand this is a feature request and questions should be posted in the Community Forum
I searched issues and couldn’t find anything (or linked relevant results below)
Problem
AWS allows retrieving the version from versioning-enabled buckets with the x-amz-version-id response header (Read more).
For multi-part uploads, I am able to retrieve the version ID because I control the response with completeMultipartUpload. However, I am unable to retrieve this information while following the recommendation that files under 100 MiB are uploaded in a single chunk.
I would like to be able to access the version ID at the time the upload finishes for all upload types.
Solution
I think the easiest path would be to add versionId as an optional field on UploadPartBytesResult and populate in
I suppose we could use xhr.getAllResponseHeaders() and pass the result directly to the user, which can then cherry-pick what they need from it. Do you think that would fulfil your usecase @ninanator?
I suppose it would only returns the headers that are allowed by CORS, but that's something the user controls.
To be honest, having a companion method like completeMultipartUpload for uploads initiated via getUploadParameters which has access to xhr.getAllResponseHeaders() would be the absolute best because I could then normalize what comes back to the body field of Success Response on the listener uppy.on('upload-success', ...) across all upload types.
Initial checklist
Problem
AWS allows retrieving the version from versioning-enabled buckets with the
x-amz-version-id
response header (Read more).For multi-part uploads, I am able to retrieve the version ID because I control the response with
completeMultipartUpload
. However, I am unable to retrieve this information while following the recommendation that files under 100 MiB are uploaded in a single chunk.I would like to be able to access the version ID at the time the upload finishes for all upload types.
Solution
I think the easiest path would be to add
versionId
as an optional field onUploadPartBytesResult
and populate inuppy/packages/@uppy/aws-s3-multipart/src/index.ts
Line 753 in 77c6b25
Alternatives
Always upload files in multiple parts, regardless of size
The text was updated successfully, but these errors were encountered: