From 4a792e7c3ae1fd527ba041128e4124b4c429cfff Mon Sep 17 00:00:00 2001 From: jstier Date: Tue, 17 Oct 2023 17:01:42 +0200 Subject: [PATCH] fix(validators): reset read on file to prevent fail down the line --- sketch_map_tool/validators.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sketch_map_tool/validators.py b/sketch_map_tool/validators.py index 8e2e7760..53b76c3b 100644 --- a/sketch_map_tool/validators.py +++ b/sketch_map_tool/validators.py @@ -38,6 +38,8 @@ def validate_uploaded_sketchmaps(files: list[FileStorage]): f"You can only upload pictures up to " f"a total pixel count of {max_pixel_per_image}." ) + del img + file.seek(0) def validate_uuid(uuid: str):