Rough idea:
- create a temporary download file. Use a random file name.
- create a program that will download the file. The program should delete the temporary download after a click on the download file link by the client
- send the download page (not the download file) link to the user, with a parameter that is the download file.
You could put some ‘downloaded ok?’ location on the download page, then delete the temp file afterwards.
Related Posts:
- How can I add an image upload field directly to a custom write panel?
- Checking if a file is already in the Media Library
- Standard location for plugin to save/cache files?
- Saving data-URI to media library
- Can I use the wp media uploader for my own plugin?
- Change Media Uploader default directory
- Init action hook running late after PayPal’s return url?
- Changing upload directory for plugin uploads only
- Upload file to remote storage
- Why are two functions over-riding each other?
- WordPress Media mime type filter problem 4.0
- Sensible location for IPN Callback script
- Using the component outside the editor. select(‘core’) is null
- Proper way to hook wp_get_attachment_url
- Getting Details Of Uploaded Image
- Sharing a common set of image files for media library, across all sites within multisite
- Uploading images from a custom page using blueimp uploader?
- Hook to get image filename when it is uploaded
- How to send email in wordpress with more than one attachments
- Using the default wordpress uploader inside plugin
- Files automatically added
- What filter should I use to insert a button inside on Media>Add New
- Changing upload dir in a plugin regardless of post type
- How to replicate Media Library “Add New” on Plugin Settings Page
- Plugin writing: access file that was just uploaded
- Custom delete option button in plugin settings
- Check Paypal Purchase is Success or Not in Easy Digital Download Plugin
- How to enable sorting in custom media uploader in plugin
- Create a new post using rest api and save featured image using an external image url
- Why is the temporary upload always 4.1K
- Upload multiple images and insert them into custom html code
- wp_editor add media button not working
- WordPress Specified file failed upload test
- How to submit/upload data to database and in specific folder?
- Cleaning a filename after image sideloading a url that contains `%20`
- Get audio metadata on file upload
- How to move an image in a plugin to the upload directory and make it as a media of wordpress?
- Why doesn’t update_post_meta work for certain strings?
- wp.media Uncaught TypeError: Cannot read properties of undefined (reading ‘state’)
- Set the payment processor callbacks to a plugin
- Insert and read media from the WordPress library and call in the plugin
- Trying to rename a file upload as the hash of file content on wordpress
- Home page is not loading, where in other pages are displaying on the site
- WordPress5.2.3: Better File Download Plugin validation issue
- WordPress discards PNG file when uploading plugin file
- Hook for validating and rejecting frontend image upload
- Changed media upload path for plugin, but generates error & shows wrong url
- How to destroy or dispose wordpress uploder/manager?
- Displaying $_FILES data (simlar to $_POST)
- Changing upload directory for plugin uploads only
- How do you filter get_media_items by mime type in a custom media upload tab?
- Is it possible to convert various image types from remote URLs to WebP and then serve them immediately?
- upload script in plugin development [duplicate]
- Leveraging Core Functionality in Icon Upload Plugin [closed]
- Upload to a specific media folder created by FileBird Lite
- Load images from CDN and custom features to “Add Media” dialogue
- upload image to wordpress media library failed for custom post type
- Default table collation on plugin activation?
- How to auto-upgrade my plugin?
- Category listing with thumbnail and description on home page
- Developing a plug-in to charge for
- What is the Difference between directly call a function and call a function using add_action?
- What is better way to use Bootstrap inside admin panel?
- Updating my plugin without releasing a new version
- 404 errors after plugin options update and category base change
- How to determine, from plugin script, if active theme has The Post Title
- add_filter : Passing an array instead of the callback function?
- Using wp_parse_args to set up Plugin Default Settings
- how to add Jquery script to one page?
- get_posts() not working when accessing with a custom user role
- Where can i find wordpress auto update code flows?
- Do I have to worry about useState causing a re-render?
- Plugin sub-menu pages recommended structure and links
- template_redirect or admin-ajax.php?
- Widget HTML Display Problem
- Bug: Post needs to be updated twice when adding action for save_post hook
- my own SVN for a plugin/theme
- How to enqueue scripts in right way in a plugin?
- Activate theme via plugin script?
- How can I add function calls to my plugin’s options.php default submit routine?
- configuration of .htaccess for add_rewrite_rule to make sense
- How to get post meta in functions?
- Plugin access to average users not only admin
- Payment field disappears on custom Paypal plugin
- Rewrite not working since upgrade to 5.9
- How to display plugin with javascript using markup of the theme?
- Can display plugin without shortcode?
- ACF Field value in wordpress login message filter
- Plugin removes itself if mistake made during edit
- Using meta_key & meta_value in add_rewrite_rule
- Can’t create a blank template
- Custom Registration Form and Passwords
- WP Ajax on page load not working on bluehost but was working on Godaddy
- Fullwidth slider using background image Flexslider WordPress
- Is there a way to tell if a shorcode’s handler is being run before or after the content formatting filter?
- Plugin files not updated (cache cleared)
- How to create an embedded code for wordpress shortcode?
- How to add additional field in a table row after creating a table?
- WordPress plugin tables become corrupt
- How can i call from custom fields to the category editor?