S3 File Upload Settings- Overwrite, Ask, etc.

0

Good morning everyone! I'm looking for the file upload settings in S3 that will give me the option to overwrite a file when I upload the same file, ask me what to do with the duplicate filing I am uploading, etc. It's like when you try to open a file in some browsers... unless you set up some settings, the dialogue will ask you which application to use, if you always want to use that application, or always ask first. I want to have options when uploading files. Thank you :-)

Adam
已提问 1 年前4323 查看次数
2 回答
0

There is no such setting in S3 by default, any features like this would be managed by a client. By default, uploads for an object with the same name and key of an existing object to a bucket that is versioned will result in a new version of the object being uploaded. If the bucket is not version, the upload will overwrite the existing object.

AWS
bruggs
已回答 1 年前
  • Understand completely. Thank you bruggs!

  • This is my understanding as well, and it seems crazy to me that there is no possibility to have such a feature. When performing a manual upload in the console, getting a pop-up that another version exists before overwriting the file seems like a pretty basic need to me!

0

By default, when you upload the file with same name. It will overwrite the existing file. In case you want to have the previous file available, you need to enable versioning in the bucket.

In case any one wants a reference, "Amazon S3 is a distributed system. If it receives multiple write requests for the same object simultaneously, it overwrites all but the last object written" https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html

AWS
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则