cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
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

Chooser for directory

Explorer | Level 4

I have seen Chooser but I can only see functionality to select a file. Is there something similar to select a folder?

10 Replies 10
Highlighted

Re: Chooser for directory

Dropboxer
Dropboxer
No, unfortunately the Chooser doesn't support folder selection, nor is there a similar pre-built component that does. I'll send this along as a feature request.
Highlighted

Re: Chooser for directory

Dropboxer
Dropboxer
The Dropbox Chooser now supports selecting folders as well as files, via the 'folderselect' option:

https://www.dropbox.com/developers/chooser
Highlighted

Re: Chooser for directory

New member | Level 2
New member | Level 2

This is great! I'd love a way to specify that only directories can be selected, perhaps by adding to the Chooser options:

 

extensions: ["Directory"]
Highlighted

Re: Chooser for directory

Dropboxer
Dropboxer

@Christian G.14 Thanks! I'll pass that along as a feature request.

Highlighted

Re: Chooser for directory

New member | Level 2
New member | Level 2

How can I get all files inside the selected folder?

Highlighted

Re: Chooser for directory

Dropboxer
Dropboxer

@testingdemo If the user chooses a folder, the link that gets returned from the Chooser to your app will be for the folder itself. That link will enable access to the all of the contents of the folder. 

When using the 'folderselect:true' option, only the 'linkType: preview' mode is supported, so you'll get back a "preview" link you can manually browse on the web. 

If you wish though, you can still modify this link as documented here. That will result in a zip download of the entire folder.

Or, if you're also using the Dropbox API, you can list the contents of the folder from the shared link using /2/files/list_folder, and download files using /2/sharing/get_shared_link_file

Highlighted

Re: Chooser for directory

New member | Level 2
New member | Level 2

Is there any update on this?

Highlighted

Re: Chooser for directory

Dropboxer
Dropboxer

@oreklabs Can you clarify what request specifically you're asking about?

 

The original request was for support for selecting folders in the JavaScript Dropbox Chooser, which is now supported.

 

Are you asking about an ability to restrict the user to only folders, or some other aspect here? Thanks!

Highlighted

Re: Chooser for directory

New member | Level 2
New member | Level 2

The ability to restrict only folder selection would be really great! Is there any update on this?

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

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?