By tips4design
I want to allow my clients to download a .zip archive if they provide a correct license key that I check using an API.
Currently, I do that by hosting the .zip on a PHP server, and having a download.php?license=YOUR_KEY that checks the key and returns the file if ok, an error otherwise.
I want to use spaces to DO spaces host the .zip file. How can I allow clients to download the file only if the license is valid?
A solution that I thought of would be to still have the download.php, but if the license is valid I would redirect to a one-time download link to the DO Spaces file.
**Is there any way to create one-time download links for a file in DigitalOcean spaces? **If not, any other solution to allow clients to download a file only if a condition is met?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I don’t think that this is yet possible out of the box but it sounds like a great idea!
The best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.
Regards, - Bobby.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.