我有一个模型,Profile并ImageField与之相关联.
Profile
ImageField
使用和将映像上载到AWS S3存储桶以进行存储.django-storagesboto
django-storages
boto
如果我上传一个文件名已经存在的图像(eg: sample.png)Django默认会保存新文件,sample_1.png因为在将图像上传到AWS S3时它不起作用.有没有办法解决这个问题?
eg: sample.png
sample_1.png
如何在AWS S3不覆盖的情况下上传具有现有文件名的图像?
AWS S3
django amazon-s3 boto django-storage
amazon-s3 ×1
boto ×1
django ×1
django-storage ×1