I have been pulling my hair out trying to bypass the S2 download restriction. If anyone can offer any ideas I would be hugely grateful.
I want to allow visitors to my site to download a ZIP file which is held on Amazon S3.
The page containing the link to this is unrestricted and works fine if the visitor is logged in as a member of my site. But, I need to allow anyone to use the link and not just signed in members. If a visitor who isn’t logged in tries to download the file they are redirected back to my homepage.
To allow anyone to download the file I have been trying to use the “Advanced Download Restrictions” in S2 Member under the “Download Options” section. This says I can use either PHP or a shortcode to create a temporary download key that will allow anyone to download the file.
I have tried both methods and receive the same error in both cases.
503 (Invalid Key): Sorry, your access to this file has expired. Please contact Support for assistance.
Here is an example of the path and shortcode being used
https://lenscraft.co.uk/?s2member_file_download=mastering-photoshop-masks.zip&s2member_file_download_key=[s2Key file_download=“mastering-photoshop-masks.zip” /]
If anyone can suggest a solution or how to work around this (whilst keeping the file off S3) you would make me very happy.
Thanks