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
preguntada hace un año4322 visualizaciones
2 Respuestas
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
respondido hace un año
  • 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
respondido hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas