fix --> bug of download uploadded file

This commit is contained in:
2026-02-09 09:48:56 +03:30
parent 7618518dc7
commit 6c291e2294

View File

@@ -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 معتبر نیستند")