Force download link with File fields... currently not "forced"
Permalink Browser Info Environment
In the API document, displaying File field data is as force download link.
> Output "force download" link to file (clicking link will download the file *even if browser is capable of displaying it*)
-http://theblockery.com/designer-content-pro#api...
But it is not works. Files are still viewable on browser. I suggest you to change the path with getHref() link like this:
- $path = '/download_file' . ($force_download ? '' : '/view_inline');
+ $path = '/download_file' . ($force_download ? '/force' : '/view_inline');
> Output "force download" link to file (clicking link will download the file *even if browser is capable of displaying it*)
-http://theblockery.com/designer-content-pro#api...
But it is not works. Files are still viewable on browser. I suggest you to change the path with getHref() link like this:
- $path = '/download_file' . ($force_download ? '' : '/view_inline');
+ $path = '/download_file' . ($force_download ? '/force' : '/view_inline');
Type: | Discussion |
---|---|
Status: | New |
Thank you so much for posting this!
-Jordan