Error uploading files with the same name.
I'm using django-storages on my django project, and I need upload to S3 my project images... On my setting I have:
- Django-storages AWS_CALLING_FORMAT = CallingFormat.SUBDOMAIN
- Default storage DEFAULT_FILE_STORAGE = 'storages.backends.s3boto.S3BotoStorage'
- Keys AWS_ACCESS_KEY_ID = 'access-key' AWS_SECRET_ACCESS_KEY = 'secret-access-key' AWS_STORAGE_BUCKET_NAME = 'my-bucket'
When I upload some image, it was save on s3 correctly, but, if I upload another file with the same name, it overwrites my first image, and I don't need it... The ideal situation would be that the new file would rename another default name... How I can fix it?
And, on my templates, waht is the correct way to call my images from amazon s3? I don't want copy the complete amazon url on my template... Can somebody help me??