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CBuDQowMDAwMDAwMjY2IDAwMDAwIG4NCjAwMDAwMDAzMTcgMDAwMDAgbg0KMDAwMDAwMTI5MyAwMDAwMCBuDQowMDAwMDAxMzI1IDAwMDAwIG4NCjAwMDAwMDE1MjkgMDAwMDAgbg0KMDAwMDAwMTU3MCAwMDAwMCBuDQowMDAwMDAzMDQzIDAwMDAwIG4NCjAwMDAwMDMyMDkgMDAwMDAgbg0KMDAwMDAwMzc2NSAwMDAwMCBuDQowMDAwMDA0NjMzIDAwMDAwIG4NCjAwMDAwMDQ2OTQgMDAwMDAgbg0KMDAwMDAwNDczNyAwMDAwMCBuDQowMDAwMDA1NjAxIDAwMDAwIG4NCjAwMDAwMDU3ODMgMDAwMDAgbg0KMDAwMDAwNTg4MSAwMDAwMCBuDQowMDAwMDA2MDU4IDAwMDAwIG4NCnRyYWlsZXIKPDwvUm9vdCAxIDAgUi9JbmZvIDIgMCBSL0lEWzw4NjkzZDQ1MzAwMDAxZjEyYjA2MzFjMGM5ZmRhZjNjNj48ODY5M2Q0NTMwMDAwMWYxMmIwNjMxYzBjOWZkYWYzYzY+XS9TaXplIDE5Pj4Kc3RhcnR4cmVmCjYyMjkKJSVFT0YK'
filename = filename + '.pdf';
var headerObj = {
'Authorization': 'Bearer ' + accessCode,
'Content-Type': 'multipart/form-data; boundary=------------------------9fd09388d840fef1'
}
var bodyObj = '--------------------------9fd09388d840fef1\r\ncontent-disposition: form-data; name="attributes"\r\n\r\n {"name": "test.pdf", "parent":{"id":"' + folderID + '"}}\r\n--------------------------9fd09388d840fef1\r\ncontent-disposition: form-data; name="file"; filename="test.pdf"\r\n Content-Type:data:application/pdf;\r\n\r\n' + testData + '\r\n--------------------------9fd09388d840fef1';
var fileObj = https.post({
headers: headerObj,
body: bodyObj
})
THE PDF FILE IS CREATED BUT FACING ISSUE We’re sorry, the preview didn’t load. This document may be protected.
-
正式なコメント
Hi Anju, it sounds like there might be an issue with the sample test data that you're supplying. Can you test starting with a local file (that you can validate loads) instead of the string data, then push that, and see if it solves the problem.
コメントアクション -
@jcleblanc
Hi jcleblanc,
Thanks for the information. We completed the local file upload in box. We need to upload a file in base64 format, is there any chances. for upload pdf file upload. We completed the text file upload successfully.Could you please look in our previous ticket.
Thank you.
サインインしてコメントを残してください。
コメント
2件のコメント