Skip to content

Commit 640f578

Browse files
authored
Merge pull request #513 from MerginMaps/backport-mimetype-validation
Backport mimetype validation
2 parents 9fa0a4b + b06423e commit 640f578

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

server/mergin/sync/models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,10 @@ def process_chunks(
10991099
errors[f.path] = FileSyncErrorType.CORRUPTED.value
11001100
continue
11011101

1102-
if not is_supported_type(temporary_location):
1102+
if (
1103+
not f.change == PushChangeType.UPDATE_DIFF
1104+
and not is_supported_type(temporary_location)
1105+
):
11031106
logging.info(f"Rejecting blacklisted file: {temporary_location}")
11041107
errors[f.path] = FileSyncErrorType.UNSUPPORTED.value
11051108
continue

0 commit comments

Comments
 (0)