Title: Problem with xlsx and docx · Issue #96 · developerforce/Force.com-JavaScript-REST-Toolkit · GitHub
Open Graph Title: Problem with xlsx and docx · Issue #96 · developerforce/Force.com-JavaScript-REST-Toolkit
X Title: Problem with xlsx and docx · Issue #96 · developerforce/Force.com-JavaScript-REST-Toolkit
Description: Hi, You have a problem with this code: var blob = new Blob([ "--boundary_" + boundary + '\n' + "Content-Disposition: form-data; name=\"entity_content\";" + "\n" + "Content-Type: application/json" + "\n\n" + JSON.stringify(fields) + "\n\n...
Open Graph Description: Hi, You have a problem with this code: var blob = new Blob([ "--boundary_" + boundary + '\n' + "Content-Disposition: form-data; name=\"entity_content\";" + "\n" + "Content-Type: application/json" +...
X Description: Hi, You have a problem with this code: var blob = new Blob([ "--boundary_" + boundary + '\n' + "Content-Disposition: form-data; name=\"entity_content\";" + &qu...
Opengraph URL: https://github.com/developerforce/Force.com-JavaScript-REST-Toolkit/issues/96
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problem with xlsx and docx","articleBody":"Hi,\r\n\r\nYou have a problem with this code:\r\n` var blob = new Blob([\r\n \"--boundary_\" + boundary + '\\n'\r\n + \"Content-Disposition: form-data; name=\\\"entity_content\\\";\" + \"\\n\"\r\n + \"Content-Type: application/json\" + \"\\n\\n\"\r\n + JSON.stringify(fields)\r\n + \"\\n\\n\"\r\n + \"--boundary_\" + boundary + \"\\n\"\r\n + \"Content-Type: application/octet-stream\" + \"\\n\"\r\n + \"Content-Disposition: form-data; name=\\\"\" + payloadField\r\n + \"\\\"; filename=\\\"\" + filename + \"\\\"\\n\\n\",\r\n payload,\r\n \"\\n\\n\"\r\n + \"--boundary_\" + boundary + \"--\"\r\n ], {type : 'multipart/form-data; boundary=\\\"boundary_' + boundary + '\\\"'});`\r\n\r\nIt should be:\r\n` var blob = new Blob([\r\n \"--boundary_\" + boundary + '\\n'\r\n + \"Content-Disposition: form-data; name=\\\"entity_content\\\";\" + \"\\n\"\r\n + \"Content-Type: application/json\" + \"\\n\\n\"\r\n + JSON.stringify(fields)\r\n + \"\\n\\n\"\r\n + \"--boundary_\" + boundary + \"\\n\"\r\n + \"Content-Type: application/octet-stream\" + \"\\n\"\r\n + \"Content-Disposition: form-data; name=\\\"\" + payloadField\r\n + \"\\\"; filename=\\\"\" + filename + \"\\\"\\n\\n\",\r\n payload,\r\n \"\\n\"\r\n + \"--boundary_\" + boundary + \"--\"\r\n ], {type : 'multipart/form-data; boundary=\\\"boundary_' + boundary + '\\\"'});`\r\n\r\nThe extra line corrupts the xlsx and docx files.\r\n\r\nThanks,\r\nYishay","author":{"url":"https://github.com/builderdege","@type":"Person","name":"builderdege"},"datePublished":"2018-01-18T09:17:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/96/Force.com-JavaScript-REST-Toolkit/issues/96"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:37133e9b-f08a-3e31-9ea5-9211aed1970c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF76:2F76D:52D0D1D:6A79C1E:69761980 |
| html-safe-nonce | 3ae24f6fb794fe7bf16ad6f3ff51c60837192e84c8e61b05821aa72a2794ff42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjc2OjJGNzZEOjUyRDBEMUQ6NkE3OUMxRTo2OTc2MTk4MCIsInZpc2l0b3JfaWQiOiI4NDkzODU0Mzg4NjUxNDMyMzIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 427ad71d8fb0760b31bda6fffe00b880daaad0c44353cb580056dcbe38010fb3 |
| hovercard-subject-tag | issue:289555883 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developerforce/Force.com-JavaScript-REST-Toolkit/96/issue_layout |
| twitter:image | https://avatars.githubusercontent.com/u/366471?s=400&v=4 |
| twitter:card | summary |
| og:image | https://avatars.githubusercontent.com/u/366471?s=400&v=4 |
| og:image:alt | Hi, You have a problem with this code: var blob = new Blob([ "--boundary_" + boundary + '\n' + "Content-Disposition: form-data; name=\"entity_content\";" + "\n" + "Content-Type: application/json" +... |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | builderdege |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/developerforce/Force.com-JavaScript-REST-Toolkit git https://github.com/developerforce/Force.com-JavaScript-REST-Toolkit.git |
| octolytics-dimension-user_id | 366471 |
| octolytics-dimension-user_login | developerforce |
| octolytics-dimension-repository_id | 1542897 |
| octolytics-dimension-repository_nwo | developerforce/Force.com-JavaScript-REST-Toolkit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1542897 |
| octolytics-dimension-repository_network_root_nwo | developerforce/Force.com-JavaScript-REST-Toolkit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4ea235bfed58ef16c8a5642b3ac64b74f10c9f52 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width