Why can't I just use the 'downloadurl' to just download a file as-is instead of using the API?
A total Box Noob here. I would like to use a existing application to download a file that is stored in Box using the downloadUrl but when I do so, it downloads the HTML content of that URL and not the actual file. When using the API via curl it seems the only option is to return the content instead of the file as a whole. I just want something to easily download myfile.txt as myfile.txt without having to write code to download the file contents and then rewrite the file in the same file format as the source from Box. Am I missing something??
-
Can you mention what the downloadUrl is?
Here is a way to download via the API using JS https://codepen.io/box-platform/pen/dRqjbB
Please sign in to leave a comment.
Comments
1 comment