Skip to content

Commit

Permalink
fix/fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément Sirieix authored and Clément Sirieix committed Dec 6, 2023
1 parent 9b64f45 commit b7fac11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-client/chainlit_client/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,8 +952,8 @@ async def upload_file(
upload_details = json_res["post"]
object_key = upload_details["fields"]["key"]
signed_url = json_res["signedUrl"]
headers = json_res["fields"]["headers"]
method = json_res["fields"]["method"] or "POST"
headers = upload_details["fields"]["headers"]
method = upload_details["fields"].get("method", "POST")

# Prepare form data
form_data = {} # type: Dict[str, Tuple[Union[str, None], Any]]
Expand Down

0 comments on commit b7fac11

Please sign in to comment.