Title: One extra character in file body after upload using the createBlob() function in forceTK.js · Issue #99 · developerforce/Force.com-JavaScript-REST-Toolkit · GitHub
Open Graph Title: One extra character in file body after upload using the createBlob() function in forceTK.js · Issue #99 · developerforce/Force.com-JavaScript-REST-Toolkit
X Title: One extra character in file body after upload using the createBlob() function in forceTK.js · Issue #99 · developerforce/Force.com-JavaScript-REST-Toolkit
Description: DESCRIPTION: If we try to upload a new ContentVersion using the createBlob() function in forceTK.js, then an uploaded file will have one extra byte at the end of content body. It will be a "new line" character (LF). As a result, some upl...
Open Graph Description: DESCRIPTION: If we try to upload a new ContentVersion using the createBlob() function in forceTK.js, then an uploaded file will have one extra byte at the end of content body. It will be a "new lin...
X Description: DESCRIPTION: If we try to upload a new ContentVersion using the createBlob() function in forceTK.js, then an uploaded file will have one extra byte at the end of content body. It will be a "ne...
Opengraph URL: https://github.com/developerforce/Force.com-JavaScript-REST-Toolkit/issues/99
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"One extra character in file body after upload using the createBlob() function in forceTK.js","articleBody":"**DESCRIPTION:**\r\nIf we try to upload a new ContentVersion using the **createBlob()** function in forceTK.js, then an uploaded file will have one extra byte at the end of content body. It will be a \"new line\" character (LF).\r\n\r\nAs a result, some uploaded files get corrupted and cannot be recognized by programs if we download them again. For example, MS Excel and MS Word say that such files are incorrect and suggest to fix the issues in format.\r\n\r\n**SOLUTION:**\r\nThe issue is in the **blob()** function (line #293). It adds \"\\n\\n\" sequence between payload and final boundary, but only one \"\\n\" is needed.","author":{"url":"https://github.com/gpervukhin","@type":"Person","name":"gpervukhin"},"datePublished":"2019-12-23T17:07:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/99/Force.com-JavaScript-REST-Toolkit/issues/99"}
| 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:8b022d85-ce2b-58e2-88cd-d2d584fd91af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C700:1C7DFD:91D9F12:BC6312A:6976195D |
| html-safe-nonce | 8a1d37729e5e7fd9a59ab0b44b8ab52c79ada4a444203dd88410eac5d2ee3145 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzAwOjFDN0RGRDo5MUQ5RjEyOkJDNjMxMkE6Njk3NjE5NUQiLCJ2aXNpdG9yX2lkIjoiNjI0MjI3Njc3MDgwNDI3NTU0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 56b65411c995db9b144719023427c80f9dc196ab73e1a9f9a23ac16675978f8f |
| hovercard-subject-tag | issue:541835086 |
| 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/99/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 | DESCRIPTION: If we try to upload a new ContentVersion using the createBlob() function in forceTK.js, then an uploaded file will have one extra byte at the end of content body. It will be a "new lin... |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gpervukhin |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width