You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a file attachment (csv) with v4.0.1, the file is saved to the sheet without correctly parsing characters such as /r/n and is treated as a string. This is due to content-type header being set to application/json as default.
What is the issue?
When adding a file attachment (csv) with v4.0.1, the file is saved to the sheet without correctly parsing characters such as
/r/n
and is treated as a string. This is due tocontent-type
header being set toapplication/json
as default.Steps to Reproduce
CODE
V4.0.1 Outcome
File downloaded from sheet after using
addFileAttachment
:Test1 (1).csv
V3.1.4 Outcome
File downloaded from sheet after using
addFileAttachment
:Test1 (2).csv
Potential Cause
smartsheet-javascript-sdk/lib/utils/httpRequestor.js
Line 35 in e4260e2
Hard coding this value to
application/octet-stream
produced the correct results on par with V3.1.4.The text was updated successfully, but these errors were encountered: