convert image uuid into string before using it

This commit is contained in:
csd4ni3l
2025-08-09 12:47:58 +02:00
parent 638193fcda
commit dc93c229d4

View File

@@ -131,7 +131,7 @@ def upload():
else:
image_data = image_data[22:] # data:image/png;base64,
image_uuid = uuid.uuid4()
image_uuid = str(uuid.uuid4())
if image_type not in ["png", "jpeg"]:
return Response("Invalid file type.", 400)