I've looked through the SDK docs and searched on community.box.com without finding any details.
The Ruby code to generate a preview link looks like this:
link_to 'View File', client.preview_link(client.file_from_path(filePath)) + '?showDownload=true'
But these links are only good for a short period and there’s high processing time to generate each link, which makes the page load slowly. Are there any examples or suggestions as to how I can dynamically generate these links when needed?
Please sign in to leave a comment.