Amazon S3 creating unique keys for every object

后端 未结 2 1911
死守一世寂寞
死守一世寂寞 2021-01-18 01:30

My app users upload their files to one bucket. How can I ensure that each object in my S3 bucket has a unique key to prevent objects from being overwritten?

At the m

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-18 01:57

    Checking for a file with that name before uploading it would work.

    If the file already exists, re-randomize the file name, and try again.

提交回复
热议问题