Smart Auto Upload Images – Import External Images
Smart Auto Upload Images automatically imports external images from your post content into your WordPress media library. When you save or update a post, the plugin detects any external image URLs, downloads them to your server, and replaces the original URLs with your hosted versions. This improves site performance, ensures image availability, and gives you complete control over your content. Why Auto Upload Images to Your Media Library? When you copy content from external sources or use remote images, you risk broken images when the original source removes them. Hosting images on your own server provides several benefits: Better SEO performance – Search engines favor self-hosted images Faster page load times – Eliminates external HTTP requests Full content control – Images remain available even if sources go offline How Auto Upload Images Works The plugin runs automatically whenever you save or update a post. Here’s the process: Scans post content for external image URLs (any image not hosted on your domain) Downloads each external image to a temporary location Validates image file integrity and format Uploads valid images to your WordPress media library Replaces original external URLs with new local URLs Attaches imported images to your post in the media library No manual intervention required. Just write your content and let the plugin handle the rest. Key Features Automatic External Image Detection The plugin automatically identifies external images in your post content when you save. It distinguishes between local images (already hosted on your site) and external images that need importing. Smart URL Replacement After importing images, the plugin intelligently replaces all instances of the external URL with your new local URL. This works with images in: Post content (Classic Editor and Gutenberg blocks) Image galleries Featured images Media Library Integration All imported images are added to your WordPress media library with proper metadata. You can: Edit images using WordPress image editor View which post each image is attached to Set custom alt text during import Apply your site’s image optimization settings Flexible Domain Exclusions Exclude specific domains from auto-import. Useful for: CDN-hosted images you want to keep external Partner websites where you have permission to hotlink Your own secondary domains Social media embeds you want to keep as external Custom Post Type Control Choose which post types trigger auto-upload. Enable for: Posts and pages (default) WooCommerce products Custom portfolio post types Documentation posts Or disable for specific types you want to skip Advanced File Naming Patterns Set custom file naming patterns for imported images using dynamic tags: %filename% – Original filename %post_title% – Current post title %post_id% – Post ID %image_title% – Image title attribute %date% – Current date %time% – Current timestamp Example: %post_title%-%filename% becomes my-blog-post-example-image.jpg Custom Alt Text Patterns Define alt text patterns for better SEO: %post_title% – Use post title in alt text %filename% – Use filename as alt text Custom text – Set consistent alt text across imports Image Size Constraints Set maximum width and height for imported images to: Control storage usage Maintain consistent image sizes Automatically resize oversized images Prevent huge images from slowing your site Featured Image from URL Set a post’s featured image using an external URL. The plugin will: Download the image from the URL Import it to your media library Set it as the post’s featured image Work via REST API or post editor How to Import External Images from Posts Install and activate Auto Upload Images Go to Settings → Auto Upload Images Configure your preferences (or use defaults) Create or edit any post with external images Click Save or Update – images import automatically Check your Media Library to see imported images How to Exclude Specific Domains If you want to prevent images from certain domains from being imported: Go to Settings → Auto Upload Images Find the “Excluded Domains” section Enter domains one per line (e.g., cdn.example.com) Save settings Images from excluded domains will be left as external URLs How to Set Custom File Names for Imported Images Navigate to Settings → Auto Upload Images Find “File Name Pattern” setting Enter your pattern using available tags: Example: %post_title%-%filename% Example: imported-%date%-%filename% Save settings New imports will use your naming pattern This helps organize your media library and improves SEO with descriptive file names. How to Set Featured Image via URL Using the Post Editor: Edit your post Find the Featured Image section in the sidebar Enter the external image URL in the “Set from URL” field The image imports automatically and sets as featured image Integration with Page Builders Auto Upload Images works with popular page builders: Gutenberg Block Editor All images in Gutenberg blocks are automatically detected and imported when you save the post. Classic Editor External images in Classic Editor content are imported on post save. WooCommerce Enable auto-import for Product post type to automatically import external product images. Custom Post Types Configure any custom post type to trigger auto-import functionality. Just ensure Auto Upload Images is active when running imports. Performance and Storage Considerations Server Storage Imported images consume server storage. Monitor your hosting plan’s disk space if importing large quantities of images. Import Speed Import time depends on: * Image file sizes * Your server’s download speed * Number of images per post * Configured maximum dimensions Optimization Tips Set maximum width/height to reduce storage Use an image optimization plugin after import Exclude domains hosting very large images Test with small batches before bulk imports Developer Features Filter: smart_aui_validate_image_url Programmatically control which image URLs get imported. add_filter( 'smart_aui_validate_image_url', function( $is_valid, $url ) { // Skip images from specific paths if ( strpos( $url, '/cdn/avatars/' ) !== false ) { return false; } return $is_valid; }, 10, 2 ); Additional Hooks Check plugin documentation for additional filters and actions to customize behavior. Troubleshooting Images Not Importing Problem: External images remain unchanged after saving post Solutions: * Check if domain is in excluded domains list * Verify your server can make external HTTP requests * Check WordPress debug log for errors * Ensure PHP has necessary image processing libraries * Verify write permissions on uploads directory Import Errors in Debug Log Problem: Seeing errors in wp-content/debug.log Solutions: * Check image URL is publicly accessible * Verify image format is supported (JPG, PNG, GIF, WebP) * Ensure external server allows download/hotlinking * Check SSL certificate validity if using HTTPS images Images Upload but URLs Not Replaced Problem: Images added to media library but old URLs remain Solutions: * Clear any caching plugins * Check post content in Text/HTML mode * Verify images aren’t in excluded domain list * Review file naming pattern doesn’t cause conflicts Duplicate Images in Media Library Problem: Same image imported multiple times Solutions: * Plugin should detect and reuse existing images (v1.2.0+) * Check if images have different URLs but same file * Clear media library of duplicates and re-save post Featured Image Not Setting from URL Problem: Featured image URL not importing Solutions: * Verify URL is publicly accessible * Check image format is supported * Ensure PHP memory limit is sufficient * Review error logs for specific error messages Maximum Width/Height Not Applied Problem: Images exceed configured dimensions Solutions: * Ensure GD or ImageMagick is installed on server * Check PHP memory limit allows image processing * Verify dimensions are set in plugin settings * Test with smaller images first
Top keywords
- images56×4.62%
- image37×3.05%
- post34×2.81%
- external23×1.90%
- url16×1.32%
- media13×1.07%
- imported12×0.99%
- library12×0.99%
- media library12×0.99%
- set11×0.91%
- check10×0.83%
- content10×0.83%
UpdraftPlus
The UpdraftPlus Backup & Migration Plugin is trusted by the WordPress community to backup, restore and migrate their WordPress websites. UpdraftPlus is actively installed on more than 3 million websites around the world. Backup with UpdraftPlus UpdraftPlus is the world’s highest ranking and most popular scheduled backup and migration plugin. Backup to your preferred storage location and restore in just three clicks. Backup to Dropbox, Google Drive, Amazon S3 (or compatible), Rackspace Cloud, FTP, DreamObjects, Openstack Swift or email. The paid version also allows you to backup to Microsoft OneDrive, Microsoft Azure, Google Cloud, Backblaze B2, SFTP, SCP, pCloud, WebDAV or UpdraftVault, our integrated storage option for UpdraftPlus. Backup manually or schedule to run every 2, 4, 8 or 12 hours, daily, weekly, monthly or fortnightly. Restore with UpdraftPlus Your WordPress website is vulnerable. Your site may get hacked. Something could go wrong with an update or your server could crash. You might need to reverse a change made or a mistake caused by human error. Whatever the reason, you can restore your WordPress website in just a few clicks with UpdraftPlus. Choose which components to restore (e.g. plugins, themes, database etc.), click again to restore, then click again to return to the main screen. Migrate with UpdraftPlus It’s easy to migrate your WordPress website to another web host, server or domain with this free version of UpdraftPlus. To migrate, simply download your database, plugins, themes etc. from the source site, then upload them into your destination site. When migrating, a built-in search-and-replace engine identifies old strings and replaces these to reflect the new location. UpdraftPlus saves you time and reduces the risk of broken links or missing files associated with manual migrations. Why UpdraftPlus? Writing a reliable backup and migration plugin that ‘just works’ consistently across millions of different WordPress deployments is hard. UpdraftPlus is relied upon to do exactly that. We’re trusted and actively deployed on more websites around the world than any other WordPress backup and migration plugin. UpdraftPlus: Backs up, migrates and restores Offers a huge number of remote storage locations Allows you to schedule backups, so you can ‘set and forget’ Is comprehensive and easy to use Is proven to work on over 3 million sites. UpdraftPlus Premium The free version of UpdraftPlus will back up and migrate your website perfectly well. However if you need more features and options you can purchase our Premium version. Backup and Migrate with UpdraftPlus Premium, and: Get automatic backups before updates. Restore the very latest version if a WordPress or plugin update breaks your site. Backup Incrementally. Changes are added to the master, saving server resources vs repeatedly backing up in full. Get more remote storage options including Microsoft OneDrive, SFTP, Microsoft Azure, WebDAV, Google Cloud, SCP, Backblaze and pCloud. Get 1GB of integrated storage with UpdraftVault for 99.999% reliability, redundancy and scalability. Get more control over how many backups are stored in a specified interval. Restore from other backup plugins including BackWPup, BackupWordPress, Simple Backups and more. Run backups at set times e.g. during periods of low traffic. Backup to more than one location for added protection. Get detailed reports. Includes cryptographic checksums so you can verify the integrity of the backup files and more. Get Premium migration. Migrating to the destination site is more direct and can be done from the source site. Get Multisite / multi-network compatibility. Backup non-WP files and databases e.g. tables belonging to your e-commerce store or customisations to WordPress core. Get database encryption. Manage your backups and migrations from the WP-CLI. Get Premium Support. Find out more on our comparison page. UpdraftPlus Premium is available for purchase here. Managing multiple websites? UpdraftCentral is a powerful remote control dashboard for WordPress that allows you to manage your backups, as well as updates, users, pages, posts, plugins and themes from one central location. Choose between: UpdraftCentral (free, self-hosted) UpdraftCentral Premium (paid-for, self-hosted) UpdraftCentral Cloud (paid-for, fully-hosted) Optimize your sites centrally by combining the power of WP-Optimize and UpdraftCentral or manage your backups centrally by combining the power of UpdraftPlus with UpdraftCentral. Need to create a temporary clone of your site? UpdraftClone makes it quick and easy to create a temporary sandbox for changes you want to try out. Simply select the versions of WordPress and PHP that you want, and we’ll do the rest. More about UpdraftClone The full suite of plugins from Team Updraft and friends UpdraftPlus. Backup, migrate and restore. Rated 5* on the plugin directory and trusted by more than 3 million WordPress website owner WP-Optimize. Clean the database, compress images and caching. Optimize your WordPress website. 5* user rating. 1 million + active installs. All-In-One Security (AIOS). Secure your WordPress website. Comprehensive, feature rich and easy to use. 5* user rating and 1 million + active installs. WP Overnight. Quality Extensions for your WooCommerce store. 5* rated invoicing, order and product management, customer management solutions and more. Easy Updates Manager. Take control of updates. Lots of features for free, and a Premium version with even more – over 300,000 users. Internal Link Juicer.Boost your SEO. Automate internal links within your WordPress website. Save time and rank higher in the search engines. For other useful, free plugins see our lead developer’s profile, here. Are you multilingual? Can you translate? Do you want to help people that speak your language to backup, migrate and restore their WordPress websites? The UpdraftPlus backup, migration and restoration plugin is ready and waiting. The translation process is easy, and web-based – please go here for instructions: https://updraftplus.com/translate/. Or, if you’re already an expert WordPress translator, just pick out the .pot file from the wp-content/plugins/updraftplus/languages/ directory – if you scan for translatable strings manually, then you need to get these functions: _x(), __(), _e(), _ex(), log_e(). Many thanks to our existing translators. License Copyright 2011-24 David Anderson This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Non-English translators are provided by volunteers, and wordpress.org does not give plugin developers control over their translations; thus relying on them is at your own risk; UpdraftPlus cannot guarantee that translations from the original English are accurate. We recognise and thank those mentioned at https://updraftplus.com/acknowledgements/ for code and/or libraries used and/or modified under the terms of their open source licences.