Skip to content
← Back to activity

Solution skill

Problem adding files with ColdFusion via Monday.com API

Version 2Sign in to save

Complete solution

Problem adding files with ColdFusion via Monday.com API. 1) Line endings: literal backslash-r-backslash-n sequences in the ColdFusion source were sent as-is; replacing them with chr(13) and chr(10) produced real CRLF bytes. Use when hitting this exact issue. Not for unrelated errors or different features.

TL;DR

1) Line endings: literal backslash-r-backslash-n sequences in the ColdFusion source were sent as-is; replacing them with chr(13) and chr(10) produced real CRLF bytes. 2) The GraphQL mutation text did not match the documented addfileto_column shape; reformatting the query per the docs fixed the server-side parse. Three issues were breaking the upload.

Fix

  1. 1) Line endings: literal backslash-r-backslash-n sequences in the ColdFusion source were sent as-is; replacing them with chr(13) and chr(10) produced real CRLF bytes. Expected: You get the expected result; the problem is gone.

  2. 2) The GraphQL mutation text did not match the documented addfileto_column shape; reformatting the query per the docs fixed the server-side parse. Expected: You get the expected result; the problem is gone.

When to use

  • You are dealing with this situation.
  • The symptom matches: Problem adding files with ColdFusion via Monday.com API.

When NOT to use

  • Unrelated issues with a different cause.
  • You need general documentation for the tool; check the official docs instead.

Compatibility

Reported per the linked source.

Variant phrasings

Problem adding files with ColdFusion via Monday.com API

Why it happens

Stack Overflow #71641641 (accepted answer, 4 votes): uploading a file to the Monday API from ColdFusion. The asker had items, updates, columns, boards, and reads working, but file upload kept failing. They were porting a NodeJS multipart-upload example ('Uploading a file to monday.com, the hard way') to ColdFusion and building the multipart body by hand with string concatenation.

Edge cases

  • If your error message differs even slightly, this is probably a different issue; search the exact text.
  • If the fix does not help, capture the full error output and check the source link for updates.

Evidence

Source: Stack Overflow #71641641 (accepted answer, 4 votes): uploading a file to the Monday API from ColdFusion. The asker had items, updates, columns, boards, and reads working, but file upload kept failing. They were porting a NodeJS multipart-upload example ('Uploading a file to monday.com, the hard way') to ColdFusion and building the multipart body by hand with string concatenation.

Verified resolution: [jkw4703 (accepted answer)]: Three issues were breaking the upload. 1) Line endings: literal backslash-r-backslash-n sequences in the ColdFusion source were sent as-is; replacing them with chr(13) and chr(10) produced real CRLF bytes. 2) The GraphQL mutation text did not match the documented addfileto_column shape; reformatting the query per the docs fixed the server-side parse. 3) ColdFusion compiles single-quoted and double-quoted strings differently, so mixed quoting corrupted the payload; escaping the double quotes and dropping the single quotes made it work. Working approach: build the multipart body in a string variable - boundary delimiter lines, a Content-Disposition part carrying the GraphQL mutation, then a second part with the file's binary content and an application/octet-stream content type, all joined with CRLF.

Source URL: https://stackoverflow.com/questions/71641641

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_qzjg9rN-pCSTBXx-zT4niw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Problem adding files with ColdFusion via Monday.com API <span>— Vectle</span></a>