Skip to content

Commit

Permalink
🐛 Closes #244
Browse files Browse the repository at this point in the history
  • Loading branch information
mawoka-myblock committed Dec 20, 2023
1 parent c7b148d commit d1a97ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classquiz/routers/eximport.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ async def import_quiz(file: UploadFile = File(), user: User = Depends(get_curren
print(len(image_data))
img_data = io.BytesIO(image_data)
mime_type = magic.from_buffer(img_data.read(2048), mime=True)
img_data.seek(0)
print(mime_type)
index = int(index.decode("utf-8"))
file_id = uuid.uuid4()
Expand Down

0 comments on commit d1a97ca

Please sign in to comment.