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
Anonymous One
2 years agoExplorer | Level 4
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 upl...
Здравко
Legendary | Level 20
Anonymous One, I have no idea how the situation can be explained more clear. Dropbox doesn't make difference between text based files and binary files! The content has to be uploaded as is without any change. Dropbox will save whatever you upload, as you have uploaded it, exactly (if encoded -> encoded)!!! That's why you cannot read it. Find a way to get to your files content non-encoded; it's the only way and usually there is such a way. For example CSV and TEXT files are... text!!! and that's why you are able see them, but PDF, DOC, and ZIP are not full text (in spite PDF and DOC are partially); in such files are least some binary pieces (non-representable as text), something that seems you cannot handle and as seems from your comment you're trying to pass in encoded form. All files you have passed (or will pass) in encoded form will not be readable. Do you understand the difference between text and binary file? Try to encode some ZIP file, locally on your machine, in base64 and see if this file will stay valid for the zip program you typically use. You can try transcode it to see if this helps. The same happens on your platform.
Anonymous One
2 years agoExplorer | Level 4
Hi Здравко ,
When I am trying to upload CSV and TEXT with same approach it is working but for PDF and other files which aren't text it is not working.
You mean for PDF I need to decode the data I am getting?
- Здравко2 years agoLegendary | Level 20
Anonymous One, I serious doubt you don't understand the meaning of the term 'encoding'. More precisely the fact that this word meaning can vary depending on what's going work on about. Ok, I will try summarize in brief. A file is place where some data can be stored (any type of data; depending on this type, corresponding file type is assigned). Example data (and corresponding file type(s)) are text, image, archive, etc. All files (as everything digital) keep inside themself some sort on different numbers. When we're talking for text (all kind of text), file keep a sequence of number representing particular sequence of glyphs. The map that represent matching between numbers and glyps is called text encoding. All files (including text and binary) can be represented in different forms (when desirable). Their original form is called raw form. For example, if you want to ensure that particular file can be passed through a text stream, the number sequence representing file can be mapped to other sequence and vice versa. Such an example is base64 encoding. These are 2 completely different types of encodings!!! As seems you cannot make difference between and think for them as for a single thing - something erroneous!
Again, Dropbox expect the file's raw form either binary or original text encoding.
Let's hope this sheds additional light.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,888 PostsLatest Activity: 19 hours 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!