Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
sanathdevadiga
4 years agoExplorer | Level 3
How to upload file to dropbox using dropbox api
Hi all , i am integrating netsuite with dropbox to upload file from netsuite to dropbox . I have already done authentication and i am generating access token also . Now i am not getting proper api...
Здравко
4 years agoLegendary | Level 20
sanathdevadiga wrote:
... I have already done authentication and i am generating access token also .
...
Hi sanathdevadiga,
It's great you have realized the authentication already. Just a warning here. You've mentioned access token only, but nothing about refresh token! Take in mind that access token expire after some time (typical 4 hours). For long term access, you need refresh token and realizing refresh process. You can get some ideas here (if you haven't implemented it yet).
sanathdevadiga wrote:
...
I have already checked filerequest/create but in this i dont know where i should add file content (img/pdf etc) .because no pareters are there for content i think .
...
File request is a way to give opportunity for somebody else to upload content, not to upload it by self! 😉
sanathdevadiga wrote:
...
Can you please help me which api should i use and what all the parameters i hve to pass.
...
It's easy. The name can leads you: 2/files/upload. Just mentioned call is suitable in many cases for no very huge files (no more than 150MB in size). If you have huge file or if you have big number of files (either small or big sized, or mixture), it may be mandatory (or better in some cases) usage of upload session and/or upload in batch. Review all calls listed after the simple upload call and select what best matches your needs. Of course, you can always start with just simple uploads and optimize your code after that. 😉
Hope this helps.
About 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!