fixed file upload

This commit is contained in:
vabene1111
2025-06-22 10:03:34 +02:00
parent 1dd3f227ac
commit 6baf640e6d
5 changed files with 41 additions and 20 deletions

View File

@@ -37,7 +37,7 @@ def get_filetype(name):
def is_file_type_allowed(filename, image_only=False):
is_file_allowed = False
allowed_file_types = ['.pdf', '.docx', '.xlsx']
allowed_file_types = ['.pdf', '.docx', '.xlsx', '.css']
allowed_image_types = ['.png', '.jpg', '.jpeg', '.gif', '.webp']
check_list = allowed_image_types
if not image_only: