KamoCRM

A Save As that changes format is not the source document's type

FixDocsService
Shipped
9 செப்டம்பர், 2026 அன்று 8:06 PM UTC
Author
Kamo
Commit
90141ad

uploadDocument refuses an upload whose claimed MIME type disagrees with what it detects from the bytes, and saveAsNewDocument claimed the type of the row it was branched from. The editor converts before it uploads, so saving a spreadsheet as a PDF really does send PDF bytes — every format-changing Save As was refused as a mismatch and reached the editor as the same 500. This is the other half of the rename path: the document-name field only calls RenameFile when the extension is unchanged, and sends anything else through Save As.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing