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

Add From Server

外掛說明

這個外掛僅提供有限度的技術支援,請不要預期會有新功能或常態性程式碼錯誤修正,也可能隨時會移除指定功能。

Add From Server 主要用於降低不良網站主機所造成的困擾,讓網站管理員透過 FTP 或 SSH 上傳檔案,然後匯入至 WordPress 網站。

這個外掛無法用於…
* 取代檔案上傳程式
* 移轉網站
* 網站更換主機商後,重新匯入網站檔案
* 批次匯入媒體檔案

這個外掛可以用於…
* 匯入檔案大小超過主機託管服務商限制的檔案
* 匯入檔案大小大到會影響網際網路連線上傳速度的檔案

WordPress 處理檔案上傳的方式比這個外掛更好,在使用這個外掛前,請審慎思考外掛使用目的。

也可以參考 WP-CLI 的媒體匯入方式:
wp media import

常見問題集

如何從其他資料夾匯入檔案?

從 3.4 版開始,這個外掛變更為會限制匯入檔案的來源目錄。
如果想從其他資料匯入檔案,必須在網站的 wp-config.php 檔案中加入 ADD_FROM_SERVER 常數。
範例如下:
define( 'ADD_FROM_SERVER', '/www/' );

為何在匯入檔案時出現紅色背景?

為了提供網站安全性,WordPress 僅能匯入/上傳指定檔案類型。
如果想為網站加入額外的檔案類型,請使用 PJW Mime Config 之類的外掛,這樣便能覆寫相關的安全性函式,並為 WordPress 網站啟用全域、未經篩選的上傳功能。

匯入的檔案儲存於何處?

如果匯入非標準上傳目錄 (標準目錄一般為 wp-content/uploads/) 中的檔案,便會將檔案複製至標準上傳目錄。
如果匯入已存在於上傳目錄中的檔案 (例如 wp-content/uploads/2011/02/superplugin.zip),外掛不會複製任何檔案,並使用原有的檔案。

如何回報程式碼錯誤?

請前往外掛的 GitHub 存放庫回報程式碼錯誤。如需取得技術支援,請前往 WordPress.org 技術支援論壇

使用者評論

2023 年 1 月 14 日
I wanted Wordpress to recognize audio files I uploaded via FTP. This plugin did exactly that with no issues whatsoever.
2022 年 6 月 5 日
This is awesome. Even with dedicated server and correct PHP upload size limits set, post limit size set, etc., WordPress media uploader could not handle a 380MB zip archive of music recording download. FTP no problem, but WooCommerce and media uploader just failed with unknown error. This worked first time, and did exactly what it said it would do. Wow. Talk about solving a problem! One of those stupid issues with WP and WooCommerce with large media files that is not a simple fix via wp-config. THANK YOU! 🙂
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!
閱讀全部 236 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Add From Server〉的開發相關工作。

參與者

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

將〈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.