Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
ThaiNguyen
4 years agoExplorer | Level 4
Use javascript to create and write file csv by api
Hello,
I want to use Javascript call API to create csv file (with data) on Dropbox.
I have read the API https://content.dropboxapi.com/2/files/upload As I understand it, is this API used to upl...
- 4 years ago
The /2/files/upload endpoint allows an app to upload a file to Dropbox by supplying the file data in the API call request body. The example in the documentation shows how one might do so by using curl to upload the contents from a file on the local filesystem, but that is not a requirement. Exactly where/how you get the file data to upload is up to you.
For JavaScript, we recommend using the official Dropbox API v2 JavaScript SDK. That SDK has a corresponding filesUpload method. You can find an example of using it here. That example gets the file data to upload from a file input field in an HTML form, for instance, not directly from a local filesystem.
Greg-DB
Dropbox Community Moderator
4 years agoThe /2/files/upload endpoint allows an app to upload a file to Dropbox by supplying the file data in the API call request body. The example in the documentation shows how one might do so by using curl to upload the contents from a file on the local filesystem, but that is not a requirement. Exactly where/how you get the file data to upload is up to you.
For JavaScript, we recommend using the official Dropbox API v2 JavaScript SDK. That SDK has a corresponding filesUpload method. You can find an example of using it here. That example gets the file data to upload from a file input field in an HTML form, for instance, not directly from a local filesystem.
- ThaiNguyen4 years agoExplorer | Level 4
Thank you very much,
I did it
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!