Skip to content

Commit

Permalink
fix: webp upload to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
ymarcon committed Jan 14, 2025
1 parent 6b63e0b commit 39070cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion enacit4r_files/services/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ async def _upload_image(self, upload_file: UploadFile, s3_folder: str = "") -> F
"""
if upload_file.content_type == "image/webp":
# no need to convert to webp
return self._upload_file(upload_file, s3_folder)
return await self._upload_file(upload_file, s3_folder)
else:
# convert to bytes
(data, origin_data) = await self._convert_image(upload_file)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "enacit4r_files"
version = "0.5.0"
version = "0.6.0"
description = "Python file utils for EPFL ENAC IT4R developments"
authors = ["ymarcon <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 39070cb

Please sign in to comment.