diff --git a/common/storage.py b/common/storage.py index 389f1a6..15f05e8 100644 --- a/common/storage.py +++ b/common/storage.py @@ -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 معتبر نیستند")