This WordPress plugin allows you to generate a unique one-time download link for a file in the media library through WPForms.
- One-Time Links: Generate unique download links that can only be used once.
- Integration with WPForms: Seamlessly generate download links via WPForms.
- AWS S3 Support: Fetch files directly from S3 if they are stored there.
- CDN Support: Can handle files that are served from a Content Delivery Network (CDN), such as Amazon CloudFront.
- Download the plugin zip file.
- Navigate to
Plugins > Add New
in your WordPress dashboard. - Click
Upload Plugin
and choose the zip file you downloaded. - Activate the plugin.
- When creating or editing a WPForm, add a field where users can select a file from the media library.
- In the notification or confirmation settings of WPForms, you can use the
{download_link}
smart tag to generate a unique download link for the selected file. - The user will receive a one-time download link after submitting the form.
For AWS S3 and CDN support, the plugin requires specific configurations:
- AWS S3: Ensure you have defined
OTDL_AWS_SETTINGS
in yourwp-config.php
. This should contain your AWS credentials, bucket name, and region. - CDN: If you're using a CDN, ensure that the CDN domain is specified in the AWS settings or in the WP Offload Media plugin settings.
The plugin comes with a logging utility that helps in debugging issues related to file download. Check the logs to get insights on any issues that might arise.
For support, please contact the Jordan or open an issue on github