Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Anonymous One's avatar
Anonymous One
Explorer | Level 4
3 years ago

Upload file into Drop Box From NetSuite Using SuiteScript.

Hi, 

I am trying to upload files from NetSuite into Drop Box using drop box upload API. I am able to upload text as well as CSV file but while uploading files like PDF,DOC,ZIP etc. I am able to upload it but data is missing or I am unable to open that file, Is there any kind of decoding needed for such files.

12 Replies

Replies have been turned off for this discussion
  • Здравко's avatar
    Здравко
    Legendary | Level 20
    2 years ago

    graceturner wrote:

    ...

    Before uploading, make sure to read the binary data of the file and encode it using Base64 encoding. Then, send the encoded data through the API. ...


    graceturner, don't push others here to confusion! Your statement is definitely NOT true, in spite in use by some environments. Dropbox API doesn't encode/decode/transcode the data in any way (neither on sending nor on receiving) that's why all data need to be raw/unencoded, so encoding in base64 would broke them. When they are encoded internally by the environment in use (like here), data must be decoded before send (not after - not on receiving - something that's not supported)!

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    2 years ago

    graceturner, here Dropbox API is on focus, not something else! If you have question or advice to another things,... post them on corresponding place. Your postings are completely unrelated to Dropbox API.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!