-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Securing a Generated PDF? #5
Comments
Hi @nearkingdom, sorry for the late reply. The way Digital Download is currently architected, you can only create a link (or token) for an Asset. The generated PDF from Enupal Snapshot isn't an Asset, it's just a regular file. I've considered allowing the plugin to just accept any file for download, but of course there are challenges associated with that. In the short term, unfortunately, it simply can't be used with dynamically generated files. I'll consider this a feature request to add the ability to specify a non-asset file path. |
I stand corrected, Enupal Snapshot does generate an Asset! https://enupal.com/craft-plugins/enupal-snapshot/docs/advanced/return-asset-model If you have access to the Asset model, then you should be able to create a link or token normally. Let me know if that does the trick for you! |
I have tried to integrate this with the Enupal Snapshot plugin but am getting an error.
Here is the code
|
Hi
Recently purchased Digital Download.
I'm wanting to secure a PDF download generated by another plugin called Enupal Snapshot. How would I do that with the Digital Download plugin and the following code which generates the PDF on the fly?
The text was updated successfully, but these errors were encountered: