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 :-)

2 réponses
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
répondu il y a un an
  • 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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions