cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to hear from you. What do you use Dropbox for?
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Dropbox API to get file of given prefix

Explorer | Level 3

Hello Team,

 

Is there any api to download files from folder(for example: test) having filename with prefix(say: log_) using javascript.

1 Reply 1
Highlighted

Re: Dropbox API to get file of given prefix

Dropboxer
Dropboxer

The Dropbox API doesn't offer a way to list/download files based on a particular prefix like this. You could use /2/files/list_folder[/continue] to list files and folders, filter the result to the desired files, and then download them using /2/files/download though. 

 

Those are links 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. For example, we do offer an official Dropbox API v2 JavaScript SDK. In that, the corresponding methods are: filesListFolderfilesListFolderContinue, and filesDownload.  

Polls
Do you know how to organize your files and folders?
<b>We have created a guide on folder best practice, so you can get organized now <a href="https://www.dropboxforum.com/t5/Business-Tips-tricks/Folder-structure-best-practice/m-p/428456#M39"><u>check it out here</u></a>.</b>

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?