I was facing the same issue and finally wrote some code, you will find the source code here. https://github.com/HeyMehedi/Temporary-File-Manager
Related Posts:
- simple solution for restricting access to (some) uploads/downloads
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- What permissions does wp-content/uploads need?
- can not upload file .vtt on wordpress 5.0.1
- What are the security reasons to disallow Microsoft Word uploads?
- Password protect some uploaded files, so only logged-in users can view them
- How to protect uploads in multisite if user is not logged in?
- File Upload Permissions
- Extend the list of MIME-types supported by the builtin uploader in 3.3
- How to safely allow user upload on CPTs?
- making media URL secured
- Is it safe to allow non-admin users access to media uploader
- Is it safe to upload JSON files to upload folder?
- Setting up a HIPAA secured form / file upload
- Where to store sensitive uploaded file?
- WP upload/select image , isn’t this a security issue?
- Basic File/Post restriction plugin
- Auto shortlink for file uploads
- How to parse an image that was just uploaded to make sure it doesn’t contain malicious code?
- How does WP media uploader create the 3 different sized images, and how can I duplicate it
- How to assign multiple file-mime-types to extension?
- Is it possible to reorganize the WordPress uploads directory?
- Create image formats with different qualities when uploading
- Which filters or actions to use after a media upload and delete?
- wp_delete_attachment doesn’t delete images in wp-content/uploads/
- Force WordPress 3.3 to use Flash uploader
- How to restrict images in v3.5 Media Library modal to only those from a specific post id?
- Allow CSV files to be uploaded
- How to add more upload directories?
- Multisite, upload images directly to Amazon S3
- How can I speed up a slow loading media library?
- What to do with unattached logos and header uploaded via native wordpress uploader?
- How can you limit the number of images / videos that can be uploaded to a WordPress post
- Failure upgrading / updating site to WordPress 4.7
- Impose a Maximum Limit on Image height and width upload size
- Force wordpress to see uploads folder media
- Moving Media Library
- Add item to media library from blob or dataUrl
- Disable TinyMCE Drag and Drop
- WP3.5 Media Uploader – how to make it accept multiple images?
- Allowing all/different file type uploads
- resize images not crop
- Trying to add filename over image in Media Browser
- Upload image from a URL and assign it as a Featured Image to a Custom Post Type?
- Setting wp_temp_dir and permissions not working for “Missing A Temporary Folder” error
- How to hook into wordpress admin upload iframe?
- frontend upload return async-ajax.php 302
- Prevent File Uploads other than images
- How can I upload a file with no extension
- how to change max file upload size WordPress 4.9.8 [closed]
- Media handle sideload not working
- How to overwrite wp_unique_filename logic
- How to change upload directory based on frontend form input name or ID?
- What function can I use to override the multisite maximum file size upload restriction?
- Cannot upload .mp3 file to wordpress media
- Flatten media files in uploads directory via linux terminal eliminating thumbnails?
- WordPress Fancybox Resize Large Image
- WordPress suddenly starts uploading media to an old (backdated) folder
- XML-RPC: How to add media caption to uploaded image?
- Interface for logged-in users to upload/download files
- wp_handle_upload() does not list uploaded file in the media library?
- Error uploading image in WordPress
- Can I change the URL of a video, or upload a video to a specific URL?
- The uploaded file could not be moved to wp-content/uploads/2019/07
- Using wp_enqueue_media() with switch_to_blog() issue
- Uploading website to Host
- WordPress Media Library – Upload space used
- Local WordPress install plugin wont upload image
- What relationship determines which images appear in ‘uploaded to post’ in edit/add post media dialog
- Disable new WP3.5 Media Picker
- How to change format of file link ( Name ) when insert from media uploder
- Use wp_handle_upload outside of a POST
- Moving Existing images from custom directory to WP’s upload directory
- Website does not reflect changes on live after uploading files via FTP
- admin notice on Insert Media popup screen
- How to allow .bin files upload?
- Programmatically Upload File to WordPress Using an API [closed]
- Add SWF file to wordpress through custom template
- Uploaded images result in a file url with full path on disk appended
- Change Link to Upload folder
- Migrating WordPress Uploads To S3 Object Storage
- Upload Video using wordpress rest api with ionic
- Which wordpress action fires after crunching
- Workaround to upload AVIF files
- SVG not displaying in Media Tab in Backend
- Remove files unrelated to WordPress from uploads
- Changing WordPress media location and upload path to sub-domain not working
- Picture upload issue – broken thumbnail
- Unable to upload anything to WordPress site
- Uploads from site on Server A uploaded on Server B (Like sort of CDN)
- I migrated WPMU site: Unable to create directory uploads/… Desperate for help!
- Add media button does not insert image in the editor
- Upload Multiple Files With Multiple Fields And With media_handle_upload
- Files larger than 500 kilobytes are not allowed
- How to split my uploaded media into directories?
- get the post thumbnail returns the full size
- All files unattached in Media Library
- Auto-Import of WXR File
- how upload images and videos to specific folder like wp-content\uploads\folder-name
- Media upload takes too long