From 4cd66d7d8498e490a589ffddf7c30495fced8e4d Mon Sep 17 00:00:00 2001 From: ocueye Date: Thu, 21 Nov 2024 14:03:07 +0000 Subject: [PATCH] fixed bug --- start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.py b/start.py index 26dfea1..bf29f3a 100644 --- a/start.py +++ b/start.py @@ -73,7 +73,7 @@ class FileUploadApp: file.file.seek(0, os.SEEK_END) # Seek to the end of the file file_size = file.file.tell() # Get the current position (file size) file.file.seek(0) - if file_size > MAX_FILE_SIZE: + if file_size > maxfilesize: return popup(f"This file is to large, max size is is {maxfilesize}") # Find the lowest unused number as the identifier