storj / team-metainfo

GNU Affero General Public License v3.0
0 stars 0 forks source link

Create more than one multi-part upload for same bucket/key #55

Open mniewrzal opened 2 years ago

mniewrzal commented 2 years ago

The spec says, “Your application might initiate several multipart uploads using the same object key. For each of these uploads, your application can then upload parts and send a complete upload request to Amazon S3 to create the object.”

https://docs.aws.amazon.com/AmazonS3/latest/dev/mpuoverview.html

That means, I should be able to do:

{code} aws --endpoint http://localhost:7777 s3api create-multipart-upload --bucket isaac-multipart-test --key testfile1 {code}

and then do it again

{code} aws --endpoint http://localhost:7777 s3api create-multipart-upload --bucket isaac-multipart-test --key testfile1 {code}

And each time it should return a different upload ID to me, and I should be able to upload parts to both of those upload IDs. And if I list-multipart-uploads for that bucket, I should see both of them.

Currently, if I do this it overwrites the first one, which means I can no longer upload parts to the first one, list parts from the first one, etc.
Migrated from https://storjlabs.atlassian.net/browse/PG-159