Search code examples
javascriptjqueryajaxbox-apiboxapiv2

Upload File Using Url to Box content-api


I did some research and i couldn't find any information regarding this,

I know that box content-api call to upload needs to be form-data

is there way to upload file via giving a url of the file?

like for example i want to save this file,

https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png

without downloading it on to the computer (client side). and than uploading it with api.


Solution

  • It is not currently possible to upload a file with the Box API using a URL to a file.

    When calling the Upload File endpoint for the Box API, you have to specify the file's location on your local machine or server.