Files
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
..