cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

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: 

Chooser for directory

Chooser for directory

android_dev
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

Re: Chooser for directory

Greg-DB
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.

Re: Chooser for directory

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

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

Re: Chooser for directory

Christian G.14
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"]

Re: Chooser for directory

Greg-DB
Dropboxer

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

Re: Chooser for directory

testingdemo
New member | Level 2

How can I get all files inside the selected folder?

Re: Chooser for directory

Greg-DB
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

Re: Chooser for directory

oreklabs
New member | Level 2

Is there any update on this?

Re: Chooser for directory

Greg-DB
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!

Re: Chooser for directory

Weihao
New member | Level 2

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

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    Weihao New member | Level 2
  • User avatar
    oreklabs New member | Level 2
What do Dropbox user levels mean?
Need more support?