I need to retrieve an public object URL directly after uploading a file, this to be able to store it in a database.
This is my upload code:
s3 = boto3.resource('s3')
s3bucket.upload_file(filepath, objectname, ExtraArgs={'StorageClass': 'STANDARD_IA'})
I am not looking for a presigned URL, just the URL that always will be publicly accessable over https.
Any help appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…