Skip to content

Commit 5e5d39c

Browse files
committed
fix issues
1 parent 16022e1 commit 5e5d39c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

template_fastapi/repositories/files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def upload_file(self, file_name: str, file_data: bytes, content_type: str | None
5555
try:
5656
blob_client = self.container_client.get_blob_client(file_name)
5757
blob_client.upload_blob(
58-
file_data, overwrite=True, content_settings={"content_type": content_type} if content_type else None
58+
data=file_data,
59+
overwrite=True,
5960
)
6061

6162
# アップロードされたファイル情報を取得

0 commit comments

Comments
 (0)