cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

API for creating file and writing data into created file

Explorer | Level 3

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 1
Highlighted

Re: API for creating file and writing data into created file

Dropboxer
Dropboxer

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. 

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?