This commit is contained in:
parent
32e5615528
commit
43856a3df6
6
main.py
6
main.py
|
@ -29,9 +29,9 @@ async def upload_handler(request: Request):
|
|||
key = str(uuid.uuid4()) + file_extension
|
||||
|
||||
s3 = boto3.client('s3',
|
||||
aws_access_key_id=STORJ_ACCESS_KEY,
|
||||
aws_secret_access_key=STORJ_SECRET_KEY,
|
||||
endpoint_url=STORJ_END_POINT)
|
||||
aws_access_key_id=STORJ_ACCESS_KEY,
|
||||
aws_secret_access_key=STORJ_SECRET_KEY,
|
||||
endpoint_url=STORJ_END_POINT)
|
||||
|
||||
try:
|
||||
with tempfile.NamedTemporaryFile() as tmp_file:
|
||||
|
|
Loading…
Reference in New Issue
Block a user