Title: Auto Upload Images
Author: Ali Irani
Published: <strong>November 13, 2012</strong>
Last modified: September 20, 2026

---

Search plugins

![](https://ps.w.org/auto-upload-images/assets/banner-772x250.jpg?rev=624464)

![](https://ps.w.org/auto-upload-images/assets/icon-256x256.png?rev=3693206)

# Auto Upload Images

 By [Ali Irani](https://profiles.wordpress.org/airani/)

[Download](https://downloads.wordpress.org/plugin/auto-upload-images.3.4.1.zip)

 * [Details](https://frp.wordpress.org/plugins/auto-upload-images/#description)
 * [Reviews](https://frp.wordpress.org/plugins/auto-upload-images/#reviews)
 *  [Installation](https://frp.wordpress.org/plugins/auto-upload-images/#installation)
 * [Development](https://frp.wordpress.org/plugins/auto-upload-images/#developers)

 [Support](https://wordpress.org/support/plugin/auto-upload-images/)

## Description

When you want to save a post, this plugin search for image urls which exists in 
post and automatically upload and import external images to the WordPress upload
directory and add images to the media library and then replace new image urls with
old urls.

#### Features

 * Automatically find images in posts and save them to the your server and wp media
   library
 * Update posts with new image urls in your server
 * Add images saved by plugin to the WordPress media library
 * Process image urls inside selected custom fields, in addition to the post content
 * Select custom post types for excluding auto upload images
 * Choose exclude domain to save images from this domain address
 * Choose custom your base url for images
 * Choose custom images file name with patterns
 * Choose custom image alt name with patterns
 * Choose max width and height for images uploaded
 * Protect your site from SSRF attacks: private and reserved IP addresses, cloud
   metadata endpoints and non-HTTP protocols are blocked, redirects are re-validated

#### Translators

 * English
 * Persian (fa_IR) – [Ali Irani](https://irani.im)
 * Español (es) – [Diego Herrera](https://github.com/diegoh)
 * Russian (ru_RU) – [Артём Рябков](https://github.com/rad96)
 * German (de_DE) – [Till Zimmermann](https://github.com/tillz)
 * French (fr_FR) – [Malaiac](https://github.com/Malaiac)
 * Korean (ko_KR) – [Shodan](https://github.com/luvrei)
 * Italian (it_IT) – Patryk Chmura

#### Links

 * [Official Plugin Page](https://github.com/airani/wp-auto-upload)
 * [Github Repository](https://github.com/airani/wp-auto-upload)
 * [Report Issues](https://github.com/airani/wp-auto-upload/issues/new)

## Screenshots

[⌊Settings page in English language⌉⌊Settings page in English language⌉[

Settings page in English language

[⌊Settings page in Persian language⌉⌊Settings page in Persian language⌉[

Settings page in Persian language

## Installation

Upload the “Auto Upload Images” to plugin directory and Activate it. To change settings
go to “Settings > Auto Upload Images” and change it.

## FAQ

### Working with Gutenberg editor?

Yes, but after save with ajax not show urls immediately in editor.

### What is “Base URL” in settings page?

This URL is used as the new URL image.

### What is “Image Name” in settings page?

You can change the final filename of the image uploaded.

### What is “Exclude Domains” in settings page?

You can exclude many domains from the upload.

### What is “Custom Fields” in settings page?

Select the custom fields (post meta) that should be scanned for external image urls
when a post is saved. Only text values are processed.

## Reviews

![](https://secure.gravatar.com/avatar/2ae3215c78cebc8f67dc9fba8eb268a05fbbdc68859aaaf0dae869c2c893fd61?
s=60&d=retro&r=g)

### 󠀁[Very useful! Great plugin](https://wordpress.org/support/topic/very-useful-great-plugin-7/)󠁿

 [what1](https://profiles.wordpress.org/what1/) May 20, 2026

Works great!

![](https://secure.gravatar.com/avatar/b9139509534903a96387b4399e1c0de3755cd71ac459166604ecd8ce4a48bef7?
s=60&d=retro&r=g)

### 󠀁[Works!](https://wordpress.org/support/topic/works-2279/)󠁿

 [granatdesign](https://profiles.wordpress.org/granatdesign/) April 6, 2026

Great plugin!

![](https://secure.gravatar.com/avatar/faffdf97495ffb60e45595e7c4f06ec959ad43a5afbe6fe9200e51d8c325823b?
s=60&d=retro&r=g)

### 󠀁[funciona](https://wordpress.org/support/topic/funciona-104/)󠁿

 [rudsonalex](https://profiles.wordpress.org/rudsonalex/) June 29, 2025

conseguiu transferir 70% das imagens

![](https://secure.gravatar.com/avatar/1c213219fb3881380058d07c6bb6aa7b98e09ed4cf099317db8e71d8999df84b?
s=60&d=retro&r=g)

### 󠀁[Very good!](https://wordpress.org/support/topic/very-good-7596/)󠁿

 [Sjaak](https://profiles.wordpress.org/svweb/) May 21, 2025

Very good plugin, works perfect, easy to use. I hope this plugin remains available
for a long time!

![](https://secure.gravatar.com/avatar/606f127e942ed555a1fe87e7e96c62d54ea518501a8f159d4d52525fcc41a6b1?
s=60&d=retro&r=g)

### 󠀁[worked perfectly](https://wordpress.org/support/topic/worked-perfectly-337/)󠁿

 [ballonbasar](https://profiles.wordpress.org/ballonbasar/) October 22, 2024

worked perfectly, thanks

![](https://secure.gravatar.com/avatar/348579e78e48ef412981a6b18bc836d7125427fe198a5e2118c737c39bb44d88?
s=60&d=retro&r=g)

### 󠀁[Working well on October, 2024, PHP 8.2](https://wordpress.org/support/topic/working-well-on-october-2024-php-8-2/)󠁿

 [catuyen](https://profiles.wordpress.org/catuyen/) October 3, 2024

Working well on October, 2024, PHP 8.2 Thanks

 [ Read all 106 reviews ](https://wordpress.org/support/plugin/auto-upload-images/reviews/)

## Contributors & Developers

“Auto Upload Images” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Ali Irani ](https://profiles.wordpress.org/airani/)

“Auto Upload Images” has been translated into 10 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/auto-upload-images/contributors)
for their contributions.

[Translate “Auto Upload Images” into your language.](https://translate.wordpress.org/projects/wp-plugins/auto-upload-images)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/auto-upload-images/),
check out the [SVN repository](https://plugins.svn.wordpress.org/auto-upload-images/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/auto-upload-images/)
by [RSS](https://plugins.trac.wordpress.org/log/auto-upload-images/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.4.1

 * Fix critical bug introduced in 3.4.0: post content was returned unslashed from
   the `wp_insert_post_data` filter, so one level of backslashes was stripped from
   every save and Gutenberg block attribute escapes (`\u002d\u002d`, `\u003c`, `\
   u003e`, `\u0026`, `\u0022`) were permanently corrupted in the database
 * Fix the same slash round trip for custom fields, which are now re-slashed before
   being written back

#### 3.4.0

 * Add custom fields support: image urls inside selected post meta fields are uploaded
   and replaced too
 * Fix SSRF vulnerability: block private/reserved IP addresses (IPv4/IPv6), cloud
   metadata endpoints and non-HTTP protocols
 * Re-validate every redirect hop against SSRF protections
 * Add download limits: 50MB max file size, 30s timeout, max 50 images per post 
   save
 * Fix image replacement for urls with query parameters (`&amp;` encoded urls)
 * Fix undefined `post_date_gmt` error for posts created via REST API
 * Fix mangled original filenames extracted from urls with query strings
 * Fix PHP 8.1 deprecation warning for images without alt attribute
 * Sanitize alt attributes and replacement urls against XSS
 * Add nonce verification to the settings reset action

#### 3.3.2

 * Add support for `webp` images
 * Add `%today_date%`, `%today_day%`, `%post_date%`, `%post_year%`, `%post_month%`,`%
   post_day%` patterns for image alt and filename
 * Fix bug in resolve `%date%` and `%day%` patterns and deprecated these patterns

#### 3.3.1

 * Fix security vulnerability protecting settings form from xss and csrf

#### 3.3

 * Add support urls without schemes
 * Add support to showing www if exists in base url #58
 * Fix duplicate images in attachments bug reported #59
 * Fix bug to download images from some urls #71
 * Integrate with Gutenberg editor
 * Add Russian translation

#### 3.2.2

 * Add support for detecting images from “srcset” attribute in img tag

#### 3.2.1

 * Fixed some important bugs
 * Add new feature to reset all options of plugin to defaults settings
 * Update with some enhancements in image resizing

#### 3.2

 * Update with change image downloader
 * Update with save post enhancements
 * Update integrate with Gutenburg editor
 * Fixed mime_content_type error in some cases
 * Fixed some minor bugs
 * Delete deprecated wp functions
 * Add Korean translation
 * Add French translation

#### 3.1.1

 * Fixed critical bug with update to new file structure

#### 3.1

 * Fixed bug and add support for base url with HTTPS
 * Fixed bug in image alt attribute replacement
 * Some optimizations and improvements code
 * Enhancement in files security access
 * Update files structures
 * Update setting page styles
 * Update screenshot pictures
 * Add Information box to setting page

#### 3.0.1

 * Fixed some bugs

#### 3.0

 * Add option for customize images alt attribute with defined patterns
 * Add option for exclude post types from auto images uploading
 * Add `%timestamp%`, `%post_id%`, `%postname%`, `%image_alt%` patterns for custom
   file names and image alt names.
 * Handling image alt attribute
 * Change code structures and many important optimizations
 * Saving images on upload directory with same post date
 * Fixed bugs with uploading images from create new posts by wp restful api
 * Fixed some bugs. Thanks to [Sergey Funn](https://github.com/racypepper)

#### 2.2

 * Added `%random%` pattern for file names. Contributed by [Zdravko Danev](https://github.com/zdanev)
 * Added Italian translation. Thanks to Patryk Chmura

#### 2.1

 * Fixed bug in problem with some urls

#### 2.0

 * Added option for choosing max width and height of saved images
 * Added new shortcodes for custom filenames. `%year%`, `%month%` and `%day%`
 * Added error message for “PHP CURL” disabled sites
 * Fixed bug in saving Persian and Arabic filename
 * Fixed bug in saving image process
 * Fixed bug in getting images url
 * Many optimizations in code and enhancements performance

#### 1.6

 * [Fixed] Fixed a bug in replace exclude urls
 * [Updated] Some optimize in code
 * [Added] Added Español translation. Thanks to [Diegoh](https://github.com/diegoh)
 * [Added] Added Russion translation. Thanks to [Артём](https://github.com/rad96)
 * [Added] Added German translation. Thanks to [Till](https://github.com/tillz)

#### 1.5

 * [Updated] Optimize save post
 * [Added] Add language files (English, Persian)
 * [Added] Add option to choose exclude urls
 * [Added] Add option for choosing a custom filename
 * [Added] Add option for choosing a custom base url
 * [Added] Add settings page
 * [Fixed] Fixed for adding image correctly to the media library

#### 1.4.1

 * [Fixed] Fixed tiny bug 😉 Thanks to Ali for reporting bug

#### 1.4

 * [New Feature] Work With Multi Address Sites
 * [Fixed] Work with Persian & Arabic URLs
 * [Fixed] Replace URL for images already been uploaded
 * Implementation with object-oriented

#### 1.3

 * Fixed some bugs

#### 1.2

 * Fixed Bug: Save one revision post
 * Fixed Bug: Fix pattern of urls
 * Fixed Bug: Save file with same name
 * Fixed Bug: More images with same urls in post
 * Fixed Bug: Work with ssl urls

#### 1.1

 * Add image to Media Library and attach to post
 * Fix a bug

#### 1.0

 * It’s first version.

## Meta

 *  Version **3.4.1**
 *  Last updated **3 weeks ago**
 *  Active installations **20,000+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **7.1.3**
 *  Languages
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/auto-upload-images/), [English (US)](https://wordpress.org/plugins/auto-upload-images/),
   [French (France)](https://fr.wordpress.org/plugins/auto-upload-images/), [Korean](https://ko.wordpress.org/plugins/auto-upload-images/),
   [Russian](https://ru.wordpress.org/plugins/auto-upload-images/), [Spanish (Chile)](https://cl.wordpress.org/plugins/auto-upload-images/),
   [Spanish (Colombia)](https://es-co.wordpress.org/plugins/auto-upload-images/),
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/auto-upload-images/), 
   [Spanish (Spain)](https://es.wordpress.org/plugins/auto-upload-images/), [Spanish (Venezuela)](https://ve.wordpress.org/plugins/auto-upload-images/),
   and [Ukrainian](https://uk.wordpress.org/plugins/auto-upload-images/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/auto-upload-images)
 * Tags
 * [auto](https://frp.wordpress.org/plugins/tags/auto/)[automatically](https://frp.wordpress.org/plugins/tags/automatically/)
   [image](https://frp.wordpress.org/plugins/tags/image/)[images](https://frp.wordpress.org/plugins/tags/images/)
   [upload](https://frp.wordpress.org/plugins/tags/upload/)
 *  [Advanced View](https://frp.wordpress.org/plugins/auto-upload-images/advanced/)

## Ratings

 4.3 out of 5 stars.

 *  [  82 5-star reviews     ](https://wordpress.org/support/plugin/auto-upload-images/reviews/?filter=5)
 *  [  4 4-star reviews     ](https://wordpress.org/support/plugin/auto-upload-images/reviews/?filter=4)
 *  [  5 3-star reviews     ](https://wordpress.org/support/plugin/auto-upload-images/reviews/?filter=3)
 *  [  3 2-star reviews     ](https://wordpress.org/support/plugin/auto-upload-images/reviews/?filter=2)
 *  [  12 1-star reviews     ](https://wordpress.org/support/plugin/auto-upload-images/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/auto-upload-images/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/auto-upload-images/reviews/)

## Contributors

 *   [ Ali Irani ](https://profiles.wordpress.org/airani/)

## Support

Issues resolved in last two months:

     2 out of 2

 [View support forum](https://wordpress.org/support/plugin/auto-upload-images/)