Disable the option of selecting folders while using FilePicker.
Hi,
I am trying to use the filePicker for one of my ongoing projects and I am trying to find a way to disable the option of selecting folders. I am not able to find anything that might help me with this in the docs. It'll be great if anyone can help me out with this.
Also, when I am trying to use ContentPicker instead of the FilePicker, for some reason I am getting a no-access error, even though I have all of the scope permission for my access token. It'll be great to get some help with that as well.
-
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?
-
have you added the domains in your whitelisted CORS? - https://developer.box.com/docs/box-content-picker#section-cross-origin-resource-sharing
Please sign in to leave a comment.
Comments
5 comments