With the 'File Force Download' (https://www.drupal.org/project/file_force) module installed, links to downloadable files (PDFs, etc), are formatted to force the browser to download to the computer instead of attempting to open it in a new tab.

However, this format alters the URL of the file link to a token-based path:

http://www.mywebsite.com/file/34/download?token=XXXXXXXXXXXXXXXXXXXXXXXXXX

Which prevents Public Download Count from adjusting/ReEx-ing the URL in order to track it.

Example of Public Download Count-processed URL:

http://www.mywebsite.com/sites/all/modules/pubdlcnt/pubdlcnt.php?file=http://www.mywebsite.com/pdf/back_office_checklist.pdf&nid=1447

Is there a way to adjust the RegEx to allow tracking on this type of URL? Or maybe incorporate this URL format into the general code?

Comments

amaisano’s picture

Issue summary: View changes
amaisano’s picture

Title: Compatibility with File Entity "Force Download" link output » Incompatible with File Force Download module
Category: Feature request » Support request
Issue summary: View changes
Issue tags: +incompatibility
amaisano’s picture

Issue summary: View changes
GBain22’s picture

Hello, this would be really useful to me - is there any progress with this or a way to make it work?