Spaces:
Build error
Build error
Commit
·
82c68b9
1
Parent(s):
bd75c69
fix: file name not found
Browse files
app.py
CHANGED
|
@@ -115,7 +115,7 @@ async def upload2(
|
|
| 115 |
res.status = HTTPStatus.FORBIDDEN
|
| 116 |
res.error = "Invalid credentials"
|
| 117 |
else:
|
| 118 |
-
key = f'{s3key}/{job_no}/{file.
|
| 119 |
logging.info(f'Key for S3 upload: {key}')
|
| 120 |
|
| 121 |
try:
|
|
|
|
| 115 |
res.status = HTTPStatus.FORBIDDEN
|
| 116 |
res.error = "Invalid credentials"
|
| 117 |
else:
|
| 118 |
+
key = f'{s3key}/{job_no}/{file.filename}'
|
| 119 |
logging.info(f'Key for S3 upload: {key}')
|
| 120 |
|
| 121 |
try:
|