From 47d41bbcd63ab5c06a42dfb1d2e5a8a95fd634fe Mon Sep 17 00:00:00 2001 From: NarangAshish Date: Sun, 23 Jul 2017 19:45:34 +0530 Subject: [PATCH] Update forcetk.js Extra line break creates issue with Microsoft office files (pptx, docx) etc. File downloaded from Salesforce give error, file corrupted. --- forcetk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forcetk.js b/forcetk.js index 7fd2918..272d375 100644 --- a/forcetk.js +++ b/forcetk.js @@ -290,7 +290,7 @@ if (forcetk.Client === undefined) { + "Content-Disposition: form-data; name=\"" + payloadField + "\"; filename=\"" + filename + "\"\n\n", payload, - "\n\n" + "\n" + "--boundary_" + boundary + "--" ], {type : 'multipart/form-data; boundary=\"boundary_' + boundary + '\"'}), request = new XMLHttpRequest();