We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2d89c38 + 78e8696 commit a7aea9cCopy full SHA for a7aea9c
1 file changed
server/mergin/sync/utils.py
@@ -509,7 +509,8 @@ def check_skip_validation(file_path: str) -> bool:
509
Check if we can skip validation for this file path.
510
Some files are allowed even if they have forbidden extension or mime type.
511
"""
512
- return file_path in Configuration.UPLOAD_FILES_WHITELIST
+ file_name = os.path.basename(file_path)
513
+ return file_name in Configuration.UPLOAD_FILES_WHITELIST
514
515
516
FORBIDDEN_MIME_TYPES = {
0 commit comments