Skip to main content
Question

SDK: Upload and file and get the URL which can be shared or downloaded by other users

  • May 21, 2025
  • 2 replies
  • 43 views

Forum|alt.badge.img

All

 

I am planning to build a web app and use box to manage file storage, the primary task i would like to accomplish is ability to upload a file using SDK and get a URL to the file. The URL will be used in the webapp. When a user clicks on the file he\she should be anle to preview\download the file. is the possible via BOX API?

 

Are there any reference documents which i use for a quick proof of concept?

 

Thanks in advance

2 replies

Forum|alt.badge.img

This is a popular use case for the Box API. 

 

Here is the link to our SDKs.

 

Here is the Box API endpoint to upload a file. In response to uploading a file, the API will return a file id for that file.

 

Here is the endpoint to preview a file (generate an embed link), and here is the endpoint to download a file

 

 


Forum|alt.badge.img

 . Is there a way to doing this via an upload widget without having to mess around the API.  

I want to be able to upload a file and preview internally on my app and also be able to download the file

 

Thanks

Ash