Using cURL to download files from box file picker URL not working
Hi fellow devs! I am using the file picker in my web application to send a JS object of info. based upon the file that is chosen in the widget. In the object, part of what is returned is a URL that is valid for 15 minutes. This URL allows you to view and download the file. I am trying to utilize cURL to download the file but it doesn't seem to be working. I'm wondering if I'm missing a step in the process.
Here is a screenshot of the object that is returned successfully from the file picker widget:
And here is my cURL attempt to download the file utilizing that same URL in the command line:
Please let me know if I'm missing something in the configuration to get this working. Thank you for the help!
-
That URL in the picture looks like a shared link, and not the actual file download url. In other words, if you open that url in a browser, you will see our shared file page. The actual download url will be really really long. You can see what the download URL looks like by inspecting the browser network tab while running https://codepen.io/box-platform/pen/dRqjbB
Please sign in to leave a comment.
Comments
2 comments