fix --> bug of download uploadded file
This commit is contained in:
@@ -23,7 +23,7 @@ def upload_to_storage(file_obj, file_name):
|
||||
ExtraArgs={'ACL': 'public-read'} # دسترسی عمومی
|
||||
)
|
||||
|
||||
return f"{STORAGE_ENDPOINT}/{STORAGE_ENDPOINT}/{file_name}"
|
||||
return f"{STORAGE_ENDPOINT}/{STORAGE_BUCKET_NAME}/{file_name}"
|
||||
|
||||
except NoCredentialsError:
|
||||
raise Exception("اعتبارنامههای AWS معتبر نیستند")
|
||||
|
||||
Reference in New Issue
Block a user