Disable the option of selecting folders while using FilePicker.

新規投稿

コメント

5件のコメント

  • 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
    コメントアクション パーマリンク
  • 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
    コメントアクション パーマリンク
  • mschwartz

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

    0
    コメントアクション パーマリンク
  • 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
    コメントアクション パーマリンク
  • 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
    コメントアクション パーマリンク

サインインしてコメントを残してください。