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');

Type: Discussion
Status: New
hissy
View Replies:
theblockery replied on at Permalink Reply
theblockery
I think this behavior changed in 5.6 and I never knew about it. I will update this for the next release of the addon.

Thank you so much for posting this!

-Jordan

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.