mirror of
https://github.com/csd4ni3l/grass_touching_captcha.git
synced 2026-01-01 12:33:45 +01:00
convert image uuid into string before using it
This commit is contained in:
2
main.py
2
main.py
@@ -131,7 +131,7 @@ def upload():
|
|||||||
else:
|
else:
|
||||||
image_data = image_data[22:] # data:image/png;base64,
|
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"]:
|
if image_type not in ["png", "jpeg"]:
|
||||||
return Response("Invalid file type.", 400)
|
return Response("Invalid file type.", 400)
|
||||||
|
|||||||
Reference in New Issue
Block a user