Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion server/mergin/sync/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,8 @@ def check_skip_validation(file_path: str) -> bool:
Check if we can skip validation for this file path.
Some files are allowed even if they have forbidden extension or mime type.
"""
return file_path in Configuration.UPLOAD_FILES_WHITELIST
file_name = os.path.basename(file_path)
return file_name in Configuration.UPLOAD_FILES_WHITELIST


FORBIDDEN_MIME_TYPES = {
Expand Down
Loading