Forced Download not functioning in Safari
-
Hello,
I am seeking help to resolve an issue that seems to only happening with Apple devices.
I have set-up a WooCommerce store using a child of the 2016 theme.
WordPress 4.6.1 and WooCommerce 2.6.7
Development URL: http://108.179.226.195/~weewidevoice/
We are selling digital downloads – MP3 and PDF
WooCommerce Settings
Products > Downloadable Products
File Download Method = Force Downloads
Access Restriction – Downloads require login is unchecked
– Grant access to downloadable products after payment is checkedProduct Settings
Simple Downloadable
Download Type = MusicFiles are 12 Mb or less.
Files are stored in a separate folder within the public folder.
In this separate folder I have added an .htaccess file containing:
<FilesMatch “\.(mp3|pdf)$”>
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>When I place and pay for an order, I get an email containing links to the files I purchased.
From a PC or Android device, the files are downloaded when I click on a file link.
The file URL is protected.From an iPod or IPad, the files appear or play in the Safari browser and do not download.
The file URL is not protected – full path appears in browser address bar.What do I have to do, so the files download regardless of the device used and the download URLs are protected?
Thank you,
Kent Tubman
- The topic ‘Forced Download not functioning in Safari’ is closed to new replies.