This commit is contained in:
user committed 2024-04-05 18:56:36 +03:00
1 parent 45cd3968e3
commit 2f188c9e65
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -161,6 +161,7 @@ async def s_api_v1_storage_get(request, file_hash=None):
async with aiofiles.open(tempfile_path, "rb") as file:
content_file_bin = await file.read()
accept_type = 'audio/mpeg'
make_log(f"Storage", f"Audio {content_sha256} converted successfully")
else:
tempfile_path = tempfile_path[:-5]
@@ -184,6 +185,7 @@ async def s_api_v1_storage_get(request, file_hash=None):
content_file_bin = await file.read()
make_log(f"Storage", f"Image {content_sha256} converted successfully")
accept_type = 'image/jpeg'
else:
tempfile_path = tempfile_path[:-5]