We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Douglas16
9 years agoExplorer | Level 4
What is the difference between 'upload' and 'create_folder' ?
What is the difference between 'upload' and 'create_folder'?Because I type the 'upload' command passing a folder that don't exist, the command create automatically the folder with the file inside, in...
- 9 years ago
The specifics will depend on your system, what language, what library/SDK, if any, you're using etc., but in general you'd use the local path you access the local file using whatever file access API your programming language supplies, and put the read data in the upload API call.
Greg-DB
Dropbox Community Moderator
9 years agoWhen you upload a file to Dropbox using the Dropbox API, it will create the file in Dropbox, if it doesn't already exist. (If it does already exist, the API can also update the file with the new data.)
That is unrelated to the state of your local filesystem. When making the upload API call, you can supply data from wherever you want, for example, from a local file, from data in memory, generated on the fly, etc. The Dropbox API only sees the data that you send it, and doesn't know if/how it was stored on your local client.
That is unrelated to the state of your local filesystem. When making the upload API call, you can supply data from wherever you want, for example, from a local file, from data in memory, generated on the fly, etc. The Dropbox API only sees the data that you send it, and doesn't know if/how it was stored on your local client.
Douglas16
9 years agoExplorer | Level 4
Hmmm, I got it, so, how I do to upload a file in a determinated folder of my local machine to the dropbox using this command 'upload' ? I means: how or where I shoul set the path of local file?
- Greg-DB9 years ago
Dropbox Community Moderator
The specifics will depend on your system, what language, what library/SDK, if any, you're using etc., but in general you'd use the local path you access the local file using whatever file access API your programming language supplies, and put the read data in the upload API call.
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!