Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
h_vohra
6 years agoExplorer | Level 4
Upload files to a specific folder using javascript
I want to upload my files to a specific folder in dropbox, I am using the filesUpload function to upload files. I want that the folder gets created 1st and then the files are stored in that folder. ...
- 6 years ago
:slight_smile: If you aren't sure what my advice mean, better keep your way of coding for now.
Would be enough to concatenate file name to the folder path. Transform everything in your code which seems:
dbx.filesUpload({path: '/' + fileName, contents: file})To something like:
dbx.filesUpload({path: '/' + folderName + '/' + fileName, contents: file})Seems you just forgot it. :wink:
Hope this helps.
Peterdc
6 years agoNew member | Level 2
Yes
About Discuss Dropbox Developer & API
Make connections with 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!