Title: Import external attachments
Author: ryanpcmcquen
Published: <strong>1 Tháng 3, 2016</strong>
Last modified: 24 Tháng 2, 2017

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

![](https://s.w.org/plugins/geopattern-icon/import-external-attachments.svg)

# Import external attachments

 Bởi [ryanpcmcquen](https://profiles.wordpress.org/ryanpcmcquen/)

[Tải về](https://downloads.wordpress.org/plugin/import-external-attachments.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/import-external-attachments/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/import-external-attachments/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/import-external-attachments/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/import-external-attachments/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/import-external-attachments/)

## Mô tả

Makes local copies of all the linked images and pdfs in a post, adding them as gallery
attachments.

Source & support:

https://github.com/ryanpcmcquen/import-external-attachments

#### Đóng góp

This plugin is based on the work done in the “Import External Images” plugin by 
MartyThornley.

https://github.com/MartyThornley

HTTPS support added by IvanDoomer:
 https://github.com/IvanDoomer

PDF support added by bengreeley:
 https://github.com/bengreeley

Most of the JavaScript was rewritten from the original plugin, to reduce the
 number
of global variables.

## Cài đặt

 1. Download the “Import external attachments” zip file.
 2. Extract the files to your WordPress plugins directory.
 3. Activate the plugin via the WordPress Plugins tab.

## Hỏi đáp

  How does this plugin work?

The plugin examines the HTML source of your post when you save it, inspecting each
IMG tag, and processing them according to the options you have selected.

Under the default settings, it will find IMG tags with links to images on other 
web sites and copy those images to your web site, updating the IMG src to point 
to your copy.

PDF functionality was added by bengreeley.

  Does it work with MultiSite?

Yes! It was developed and built (and is used everyday) at PhotographyBlogSites.com–
a multisite install.

  What if i don’t want to import images from a third party image hosting site?

You can make it ignore any domain you want on the settings page, in case you work
with a CDN or photo hosting site and want to keep those images where they are.

## Đánh giá

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

### 󠀁[Работает но не совсем](https://wordpress.org/support/topic/%d1%80%d0%b0%d0%b1%d0%be%d1%82%d0%b0%d0%b5%d1%82-%d0%bd%d0%be-%d0%bd%d0%b5-%d1%81%d0%be%d0%b2%d1%81%d0%b5%d0%bc/)󠁿

 [mikulya](https://profiles.wordpress.org/mikulya/) 18 Tháng 6, 2024

Плагин выполняет свои функции с классическом редактором, но замораживается процесс,
когда попадается статья, с неработающей внешней картинкой. Предварительно лучше 
избавиться от нерабочих картинок

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

### 󠀁[It worked for me in 2023!](https://wordpress.org/support/topic/it-worked-for-me-in-2023/)󠁿

 [pichichi](https://profiles.wordpress.org/pichichi/) 30 Tháng 1, 2023

This worked for me in 2023. All I had to do was install Classic editor and make 
sure the post pages wern’t using any third party page builders. To import the missing
attachments, I then opened the edit page for each post one by one and followed the
instructions in the right sidebar. Once done, simply uninstalled classic editor 
and this plugin. Awesome. Thank you.

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

### 󠀁[Really great, lightweight, awesome job](https://wordpress.org/support/topic/really-great-lightweight-awesome-job/)󠁿

 [sae281062](https://profiles.wordpress.org/sae281062/) 27 Tháng 3, 2020

Works with 5.3.2

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

### 󠀁[A very good module, useful and easy to use.](https://wordpress.org/support/topic/a-very-good-module-useful-and-easy-to-use/)󠁿

 [mikewaveit](https://profiles.wordpress.org/mikewaveit/) 18 Tháng 1, 2020

I import the images from the posts of a blog migrated from Blogger into Wordpress.
Works great.

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

### 󠀁[Awesome](https://wordpress.org/support/topic/awesome-6452/)󠁿

 [mikeallteams](https://profiles.wordpress.org/mikeallteams/) 21 Tháng 2, 2019

Brilliant plugin. Works great for PDFs.

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

### 󠀁[Very Good and Useful](https://wordpress.org/support/topic/very-good-and-useful-14/)󠁿

 [swagatamm](https://profiles.wordpress.org/swagatam1975/) 9 Tháng 12, 2018

This plugin does more than what it says, it is so good. I only hope it stays updated
regularly.

 [ Đọc tất cả 26 đánh giá ](https://wordpress.org/support/plugin/import-external-attachments/reviews/)

## Người đóng góp & Lập trình viên

“Import external attachments” là mã nguồn mở. Những người sau đã đóng góp vào plugin
này.

Những người đóng góp

 *   [ ryanpcmcquen ](https://profiles.wordpress.org/ryanpcmcquen/)

[Dịch “Import external attachments” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/import-external-attachments)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/import-external-attachments/),
check out [SVN repository](https://plugins.svn.wordpress.org/import-external-attachments/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/import-external-attachments/)
qua [RSS](https://plugins.trac.wordpress.org/log/import-external-attachments/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.5.12

 * Adds support for pages.
 * Adds support for `.doc` and `.docx` files.
 * Fixes security issue by not directly echoing `$_GET['post']` but casting it to`
   int`.
 * Adds support for filenames with spaces in them (by removing the space from the
   exclusion in the regex).
 * Makes the regexes slightly easier to read by making them case insensitive.

#### 1.5.11

Add .jpeg support.

#### 1.5.9

Remove duplicate README.

#### 1.5.8

Fix some typos.

#### 1.5.7

Add GitHub link.

#### 1.5.6

Fix naming.

#### 1.5.5

Make import_images_start_time a function. Hopefully it works now. :^)

#### 1.5.4

Make import_images_start_time globally accessible.

#### 1.5.3

General cleanup.

#### 1.5.1

Merged upstream pull requests from bengreeley and IvanDoomer and changed to ‘Import
external attachments’.
 Now supports PDFs and HTTPS!

#### 1.3

Fixed case sensitivity, thanks to https://github.com/SidFerreira
 Fixed duplicate
EXTERNAL_IMAGES_DIR notice

#### 1.1

Fixed title in readme.

## Meta

 *  Phiên bản **1.5.12**
 *  Cập nhật lần cuối **9 năm trước**
 *  Số lượt cài đặt **2.000+**
 *  Phiên bản WordPress ** 3.2 hoặc cao hơn **
 *  Đã kiểm tra lên đến **4.4.34**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/import-external-attachments/)
 * Thẻ
 * [attachments](https://vi.wordpress.org/plugins/tags/attachments/)[gallery](https://vi.wordpress.org/plugins/tags/gallery/)
   [images](https://vi.wordpress.org/plugins/tags/images/)[photo](https://vi.wordpress.org/plugins/tags/photo/)
   [photobloggers](https://vi.wordpress.org/plugins/tags/photobloggers/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/import-external-attachments/advanced/)

## Đánh giá

 4.3 trên 5 sao.

 *  [  20 5-star reviews     ](https://wordpress.org/support/plugin/import-external-attachments/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/import-external-attachments/reviews/?filter=4)
 *  [  2 3-star reviews     ](https://wordpress.org/support/plugin/import-external-attachments/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/import-external-attachments/reviews/?filter=2)
 *  [  3 1-star reviews     ](https://wordpress.org/support/plugin/import-external-attachments/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/import-external-attachments/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/import-external-attachments/reviews/)

## Những người đóng góp

 *   [ ryanpcmcquen ](https://profiles.wordpress.org/ryanpcmcquen/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/import-external-attachments/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://ryanpcmcquen.org)