Skip to content

Commit

Permalink
Rectifyimage uploading procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvSrikanth committed Aug 8, 2024
1 parent a86ac8e commit 2b1c914
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions weco/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ def _upload_image(self, fn_name: str, upload_id: str, image_info: Dict[str, Any]
response = self._make_request(endpoint=endpoint, data=request_data, is_async=False)

# Upload the image to the S3 bucket
image_name = generate_random_base16_code()
files = {"file": (f"{image_name}.{file_type}", upload_data)}
files = {"file": upload_data}
http_response = requests.post(response["url"], data=response["fields"], files=files)
if http_response.status_code == 204:
pass
Expand Down

0 comments on commit 2b1c914

Please sign in to comment.