You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
StefanReeder
5 years agoNew member | Level 2
NetSuite Server Side SS2.x Script to upload files to Dropbox - body encoding issue
Hi team I'm trying to upload a file to Dropbox via the API using a user event (server side) script in NetSuite. I can get a file to be uploaded, but having an issue with the "body" encoding. ...
Greg-DB
5 years agoDropbox Staff
[Cross-linking for reference: https://stackoverflow.com/questions/64454739/using-server-side-ss2-x-to-upload-files-to-dropbox-body-encoding-issue ]
I can't offer help with the NetSuite side of things, as that's not made by Dropbox, but for reference, the /2/files/upload Dropbox API endpoint is a "content-upload" style endpoint, meaning it expects the file data in the HTTPS request body. The data should be sent just as a raw octet-stream (per the "Content-Type"), without any additional encoding. (Dropbox doesn't perform any additional operations, such as encoding/decoding, on the received data before storing it.)
So, for example, if your data source is giving you your file data encoded with base64 encoding, you may need to base64-decode it before sending it to Dropbox.
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 5 days agoIf 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 or Facebook.
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!