Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Ajay_Chawda's avatar
Ajay_Chawda
Explorer | Level 3
6 years ago

API for creating file and writing data into created file

Hello All,

which API should i use to create text file and write data into created file?

for eg.

file name:- sample.txt

file content:- 

"--------------------------------------------------------------------------------------------------"
"No of Lines Present in the file"
"48"
"--------------------------------------------------------------------------------------------------"

 

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    6 years ago

    To upload a new file, or a new version of an existing file, with some particular file data, you can use the /2/files/upload endpoint.

    By the way, that's a link to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints. 

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!