patharanor commited on
Commit
82c68b9
·
1 Parent(s): bd75c69

fix: file name not found

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.name}'
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: