Skip to main content
Question

How to get shared file Download url in next js with react 18

  • August 22, 2024
  • 1 reply
  • 38 views

Forum|alt.badge.img

Can anyone suggest the latest way to  get shared file Download url? I got next js 13  with react 18 project . There is no JS SDK currently so  using CDN v21.0.0. I need to get picked file download url from the file picker window and send it to the Back End to be downloaded there and fetch it then from different endpoint to my project. I tried some urls for that inside shared_link but it does not work as it should and seems like i need to do it through fetching it including access token with request . Thanks.

1 reply

Forum|alt.badge.img
  • Author
  • New Member
  • 2 replies
  • August 23, 2024

Some update. Managed to get that download url from fetching https://api.box.com/2.0/files/${file_id}/content , using access token in headers Authorisation


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings