這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Add From Server

描述

This plugin offers limited support. Please do not expect new features or too many bugfixes. Features may be removed at any time.

Add From Server is designed to help ease the pain of bad web hosts, allowing you to upload files via FTP or SSH and later import them into WordPress.

This plugin is NOT designed to..
* Be used as a replacement for the file uploader
* Be used for migration of websites
* Re-import your files after moving webhosting
* Batch import media

This plugins IS designed to..
* Import files which are larger than your hosting allows to be uploaded.
* Import files which are too large for your internet connections upload speed.

WordPress does a better job of file uploads than this plugin, so please consider your needs before you use it.

You may also want to look at using WP-CLI for media import purposes:
https://developer.wordpress.org/cli/commands/media/import/

常見問題

How can I import files from other folders?

In 3.4, the plugin changed to limit the directories you can import files from.
If you wish to import files from other folders, you need to add the ADD_FROM_SERVER constant to your wp-config.php file.
For example:
define( ‘ADD_FROM_SERVER’, ‘/www/’ );

Why does the file I want to import have a red background?

WordPress only allows the importing/uploading of certain file types to improve your security.
If you wish to add extra file types, you can use a plugin such as: https://wordpress.org/extend/plugins/pjw-mime-config/ You can also enable “Unfiltered uploads” globally for WordPress if you’d like to override this security function. Please see the WordPress support forum for details.

Where are the files saved?

If you import a file which is outside your standard upload directory (usually wp-content/uploads/) then it will be copied to your current upload directory setting as normal.
If you however import a file which is already within the uploads directory (for example, wp-content/uploads/2011/02/superplugin.zip) then the file will not be copied, and will be used as-is.

I have a a bug report

You can report bugs on GitHub and get support in the WordPress.org Support Forums.

評價

2022年2月24日
I was able to import files into Media using WordPress 5.9. I could not do this with folders, which made things a bit tedious. But overall a good plugin.
2022年1月30日
This plugin has saved me so many pulled hairs. If you were trying to find a way to use files in your own folder with the Media Library, this is it. It's bewildering that this functionality isn't built into Wordpress already, but hats off for making this and publishing it. Thank you, thank you, thank you!
2022年1月21日
This allows you to add images from anywhere in your server in such a way that they are treated by WordPress and other plugins the way they treat other "Media" images, while preserving your custom image directories. Because the entire folder for this plugin is only about 32 KB, I would recommend this before any other similar plugins.
2022年1月20日
Hello Everyone, Hostgator agent suggested I use the plugin and it worked perfectly. Also, the agent sent me this Plugin and use FileZilla FTP. I am using WordPress 5.8.3. SipseyCreekArtPrints.com
2021年12月22日
This worked perfectly with WordPress 5.8 for what we needed - to add files back into a site in their original structure within the uploads directory after using FileZilla to put the files back.
閱讀全部233個評價

貢獻者及開發者

“Add From Server” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Add From Server 外掛目前已有 20 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Add From Server 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

3.4.5

  • Fix a fatal error when WordPress or PHP requirements are not met.

3.4.4

  • Simplify the date handling

3.4.3

  • Better handling for / as the root path
  • Better compatibility with certain WordPress docker images
  • Better handling for some empty folders

3.4.2

  • Restore case insensitive alphabetical sorting

3.4.1

  • Plugin now requires WordPress 5.4+

3.4

  • The plugin now requires WordPress 5.1+ and PHP 7.0+. No reason other than why not.
  • Bumps the version to stop the invalid vulnerability warnings.
  • Cleans up code.
  • Removes the User Access Control. Any user with File Upload ability can now use the plugin.
  • Removes the Root Directory Control. The root directory is now assumed. You can use the ADD_FROM_SERVER constant to change it.
  • Removes the Quick Jump functionality.
  • Removes the ability to be able to select the date for imported media. It’s always today. Or, the 1st of the month if it’s stored in a dated folder.
  • Removed Media Manager integration, as it’s no longer shown with the WordPress Block Editor. Classic Editor is not supported by this plugin.