Welcome to the new Box Support website. Check out all the details here on what’s changed.

Disable the option of selecting folders while using FilePicker.

New post

Comments

5 comments

  • mschwartz

    Hey  - thanks for reaching out.

     

    There are actually two different pickers - one for file selection and one for folder selection. You can see this by toggling the desired outcome in the sample HTML here.

     

    Regarding the token permissions, are you able to make it work using your developer token? Is the application authorized to your enterprise?

    0
    Comment actions Permalink
  • RoshanRishav

    No, I am not able to use it using my access token. For testing I am trying to use the codepen examples of content picker (by changing the access token to that of mine, and the root folder to '0'), but If I am trying to use the token with curl, I am able to get all of my files.

    0
    Comment actions Permalink
  • mschwartz

     have you added the domains in your whitelisted CORS? - https://developer.box.com/docs/box-content-picker#section-cross-origin-resource-sharing

    0
    Comment actions Permalink
  • RoshanRishav

     Yes, I have added the domain to CORS. But I am working on my local host(The domain that I have added to the CORS is of my localhost), do you think that might be a problem? 

    0
    Comment actions Permalink
  • mschwartz

     In your CORS, can you please add https: in addition to http: for port 3267? Or, can you try using port 8080 instead? 

    0
    Comment actions Permalink

Please sign in to leave a comment.