Skip to content

Instantly share code, notes, and snippets.

@ralphtheninja
Created April 25, 2019 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralphtheninja/8dbc88f56e727fe467108df413241106 to your computer and use it in GitHub Desktop.
Save ralphtheninja/8dbc88f56e727fe467108df413241106 to your computer and use it in GitHub Desktop.
function onGotAllSlices(docdataSlices, access_token) {
updateStatus('handle all slices');
var docdata = [];
for (var i = 0; i < docdataSlices.length; i++) {
docdata = docdata.concat(docdataSlices[i]);
}
var fileContent = new String();
for (var j = 0; j < docdata.length; j++) {
fileContent += String.fromCharCode(docdata[j]);
}
uploadDocument(access_token, fileContent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment