There is no easy way to do this. You could query the WP database for wp_posts that are media uploads and then run a script to match those again the files in the uploads folder, but even this would be a little shaky.
Related Posts:
- “Add Media” button in custom plugin
- Remote upload file to server B
- What plugin can I use to create a list / slideshow of featured images?
- Upload specific images to specific folder
- Any plugin out there that uses WP’s internal image uploader?
- How to make WordPress use protocol indepentent upload files?
- How to create an edit media button for slideshow plugin?
- Generated Images sizes do not match Media Settings Image Size
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- Find unused images?
- Media upload not working on theme option in WordPress 3.8.1
- How organize uploaded media in WP?
- Restrict media upload size by format
- wp_generate_attachment_metadata is creating an empty array
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- Auto move media file to cloud
- media page returnig to 404 in rtmedia [closed]
- adding a button to the media uploader
- multiple image upload using wp_enqueue_media
- Media library and Upload media problem
- Where to store media uploaded by the plugin?
- How to prevent intermediate images from being created but keep the sizes available for selection in the media library?
- Upload the images folder with sub-folders directly to server
- How To Convert External Image URLs To Own Website’s Uploaded Images Automatically?
- How to upload image with simple form?
- Resizing all images
- Way to force media uploader use custom image size
- Hook for image edit popup
- how does wp.media javascript library work?
- How to extend Media Library (WP 4.4)
- Increase Size Limit of Media Files WordPress 4.1
- Please select a file error
- How can I add a custom meta value on file upload?
- Upload images from custom plugin using the media modal
- How to upload thousands of images?
- How can I use a video header that’s over 8MB?
- Saving/Writing/Adding file to upload folder
- How can I process xml file on upload?
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- Is it possible to personalize the Media Library?
- WordPress 3.5 Media Manager – add a button
- Upload file inside plugins options page
- Media is not attached after import
- WordPress: cleaning media library
- Removing included CSS file that doesn’t exist
- Submit page limited in time to upload image
- transfer a file from one domain to another via wp
- Retrieving Meta from Image Attachment
- Plugin Not Working After Being Uploaded To WordPress Plugin Repository
- Bulk Image Upload And Rerrange Functionality
- Redirect to another page using contact form 7? [closed]
- Is it possible for a plugin to force reading and writing of uploaded images to a database instead of to a filesystem?
- How to change the wp_upload_dir() path in plugin
- Measure and limit file uploads
- Is there a function to list all uploaded images? How can I add one?
- MediaElement.js works on one site but not the other?
- download button for audio file in post [closed]
- File Uploader – Upload without adding to Media Library
- Detect plugin/theme installation (via upload)
- How To Create A File Archive in WordPress?
- WordPress does not allow me to upload a .xml file
- Simple sildeshow/image-upload plugin?
- Why does “updated_post_meta” did not fire when uploading media other than image?
- WordPress Media Library Folders + Custom Linux Server Hosting
- Upload PlugIn Button is missing
- How to copy the all WordPress media items to another custom plugin folder?
- Is there a way to auto generate poster image for videos
- Access remote SFTP server via WordPress login?
- how to split and upload a theme on wordpress?
- Is it possible to pull all featured images from WP database only?
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- 500 Internal server error wp_handle_upload_prefilter
- Cannot display wordpress thumbnail
- upload multiple images using wp_handle_upload
- How wordpress handle urls present in db for external wp-content directory
- Remove special characters from filenames
- woocommerce with external ftp site
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- Not able to upload Plugins/ Theme from Admin backend
- Custom Gallery plugin uploading to different dir, and post to page
- Soflyy WP All Import Custom File Download Issue
- Media Upload to custom database and Custom Directory
- WP default file upload hook not working if used in a plugin
- How to create a dashboard for logged-in users with custom functionality? [closed]
- Extending the “Add Media”-Dialog … how do I finally insert something to the Post?
- How do I secure a subdomain using UCC SSL?
- Plugin programming: Uploading a file to a specific folder
- include plugin folder directly in theme folder to load faster page n wp
- Is there a WP-Plugin to convert PNG to GIF? [closed]
- Upload Image to desired directory through plugin
- I want to disable certain file types from upload from dokan description field
- add_image_size is not generatin images of correct dimensions
- how to get the url of a custom uploaded file
- A way to upload old html pages with all its assets via WordPress admin and to add a fixed menu on top of those (a la Wayback Machine)
- wp_handle_upload – specified file failed upload test
- Uploading a plugin as .zip
- How to put tags on photos in Windows that WordPress can read and apply on media files?
- Increased max_upload_filesize, but still can’t upload plugin [closed]
- How to connect WordPress media to another host?
- I want to allow certain file types on dokan upload files