fix(webdav): PDF validation for WebDAV sync (BIT-26608) #5

Merged
spark merged 1 commits from task/BIT-26608-webdav-pdf-validation into main 2026-07-15 01:37:28 +01:00
1 Commits
Author SHA1 Message Date
XikaandCursor 5bc5e0d889 fix(webdav): accept PDFs with leading bytes and JPEG-as-.pdf scans
WebDAV sync rejected valid files like 1784074260.pdf when the PDF magic
bytes were not at offset 0 (whitespace/BOM) or when a mobile scanner stored
JPEG bytes under a .pdf name. Scan the first 1KB for %PDF-, allow image
fallback for .pdf, and include validation detail in API errors.

Co-authored-by: Cursor <[email protected]>
2026-07-15 00:37:17 +00:00