[WordPress] 外掛分享: Custom Upload Dir

前言介紹

  • 這款 WordPress 外掛「Custom Upload Dir」是 2007-12-03 上架。
  • 目前有 6000 個安裝啟用數。
  • 上一次更新是 2022-07-26,距離現在已有 1012 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.9 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.2 以上。
  • 有 25 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

ulfben |

外掛標籤

files | media | upload | organize |

內容簡介

WordPress 允許您將上傳文件放置在以年和月為基礎的文件夾中。Custom Upload Dir 會更具靈活性,您可以從變數(如文章標題、分類、作者、發布日期及許多其他變數)構建路徑,

我創建了 Custom Upload Dir,確保我的文件系統始終反映站點結構。這樣我就可以在需要時手動查找文件。它還簡化了備份和平台遷移。

// Ulf Benjaminsson

Changelog v. 3.4.6 (2020-07-17)

修正空指針錯誤。(感謝 defotoverij!)

Changelog v. 3.4.5 (2020-05-05)

新增法語翻譯。(感謝 bibi699depreau!)

Changelog v. 3.4.4 (2019-03-24)

修復了一些 PHP 警告
移除了 %permalink% 模板,因為它會破壞對草稿的上傳。

Changelog v. 3.4.3.2 (2019-03-24)

新增對 Gutenberg 編輯器的支援

Changelog v. 3.4.2 (2015-03-16)

新增篩選器 ‘cud_generate_path’,所以您可以使用任何變數輕鬆調整路徑
新增 %mime_type%,以按文件類型排序
新增 %author_role%,以按作者角色排序
即將推出:不同的文章類型可以有自己的上傳位置規則。目前缺少管理界面。如果您願意幫忙,請告訴我。

Changelog v. 3.4 (2013-02-09)

新增 %file_ext%,以按文件類型排序
提供對從 WordPress 應用程式上傳的暫定支援。
移除了對“基本上傳文件夾”的設置,因為 WP 核心不再公開此信息
清理了管理頁面上的一些 PHP 錯誤
修正了管理頁面上的 CSS 瀏覽器兼容性問題

Changelog v. 3.3 (2011-12-18)

支援 WordPress 3.3
支援標籤和分類
支援自訂分類
新增 %current_user% 和 %permalink%
新增所有永久連結標籤
新增管理頁面上的測試功能

更舊的 Changelog 要點請移步此處。

其他資訊

版權所有 (C) 2007-2019 Ulf Benjaminsson

本程式是自由軟體,您可以根據 GNU 通用公眾許可證的條款進行重新發布和/或修改
它,以及您選擇的任何後續版本。

本程式是基於希望它有用之目的分發的,但沒有任何保證;即使是對於商業上的適銷性或適用性
的暗示保證,也不保證。詳細內容請參閱 GNU 通用公共許可協議。

您應該已經收到一份 GNU 通用公眾許可的副本;如果沒有,請寫信給自由軟體
基金會,位於波士頓的 59 Temple Place,Suite 330,MA 02111-1307,USA

原文外掛簡介

WordPress allow you to put uploads in year- and month-based folders. Custom Upload Dir is more flexible. You can construct paths from variables like post title, category, post author, post date and many more.
I created Custom Upload Dir ensure my file system is always mirroring the site structure. This ensures I can always find files manually when needed. It also simplifies backups and platform migrations.
//Ulf Benjaminsson
Changelog v. 3.4.6 (2020-07-17)

fixed a null dereference error. (thanks, defotoverij!)

Changelog v. 3.4.5 (2020-05-05)

added french translation (thanks, bibi699depreau!)

Changelog v. 3.4.4 (2019-03-24)

Fixed a few PHP warnings
Removed the %permalink% template as it broke uploads to drafts.

Changelog v. 3.4.3.2 (2019-03-24)

Added support for the Gutenberg editor.

Changelog v. 3.4.2 (2015-03-16)

Added filter ‘cud_generate_path’ so you can easily adjust the path with any variable you want.
Added %mime_type% to sort files by mime type
Added %author_role% to sort files by author role.
Coming: support for per-post-type settings. Eg: every post type can have their own rules for where to place uploads. Currently missing the admin interface. If you feel like helping out, let me know.

Changelog v. 3.4 (2013-02-09)

Added %file_ext% to sort by file type
Added tentative support for uploads from WordPress apps.
Removed setting for “Base upload folder” as WP core no longer exposes this
Cleared out some PHP error on the admin page
Fixed leaking CSS on admin page

Changelog v. 3.3 (2011-12-18)

Support for WordPress 3.3
Support for tags and categories
Support for custom taxonomies
Added %current_user%, %permalink%
Added all permalink tags
Added test-function to admin page

Older changelogs moved here.
Additional Info
Copyright (C) 2007-2019 Ulf Benjaminsson
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 2 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Custom Upload Dir」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


2.5 | 3.0 | 3.3 | 3.4 | 2.5.1 | 2.5.2 | 2.5.3 | 2.5.4 | 3.0.1 | 3.0.2 | 3.3.1 | 3.3.2 | 3.4.2 | 3.4.4 | 3.4.5 | 3.4.6 | trunk | 3.4.3.1 | 3.4.3.2 |

延伸相關外掛(你可能也想知道)

  • Safe SVG 》Safe SVG 可以讓你安心地在 WordPress 中上傳 SVG 檔案!, 它能夠讓你允許上傳 SVG 檔案的同時,確保它們已經經過消毒以防止 SVG/XML 弱點影響你的網站。此外...。
  • FileBird – WordPress Media Library Folders & File Manager 》Media Folder 是史上最佳的 WordPress 外掛,可讓您使用資料夾對媒體庫進行分類。, 我們可以使用拖放式組織方式整理 WordPress 媒體庫資料夾。, 試用 | 升級...。
  • Media Cleaner: Clean your WordPress! 》Media Cleaner 是一個強大的外掛,它可以幫助你清理 WordPress 媒體庫中未使用的媒體條目和文件,以及修復損壞的條目。內置回收站功能讓你可以在永久刪除之前...。
  • Default Featured Image 》在媒體設定頁面上新增一個預設的特色圖像。如果沒有設定任何特色圖像,這個預設的特色圖像就會顯示。就這麼簡單。, 查看常見問題以獲取基本問題資訊。, 如果...。
  • Add From Server 》這個外掛提供有限的支援。請不要期望有太多新功能或修正 bug。功能可能隨時被移除。, Add From Server 外掛旨在幫助緩解不好的網站主機所造成的困擾,讓您可...。
  • Media Library Assistant 》媒體庫助手提供多個增強功能,方便管理媒體庫,其中包括:, , , , [mla_gallery] 短碼,在文章、頁面或自訂文章類型中使用,添加圖片和/或其他媒體庫項目(...。
  • Reveal IDs 》WordPress 2.5版本發佈後,所有管理頁面的ID都被刪除了。這應該是因為普通用戶不需要它們。但對於高級WordPress用戶和開發人員來說,這些ID對某些外掛或模板...。
  • Phoenix Media Rename 》通過使用「Phoenix Media Rename」外掛,將您的媒體檔案重新命名,極大地提高您的 SEO。, 在Phoenix Media Rename 官方頁面上提供了完整的使用和設置指南。。
  • Media File Renamer: Rename for better SEO (AI-Powered) 》從儀表板直接重命名和移動檔案,可以逐個或批量進行操作,還可以設置自動重命名檔案的功能,提高 SEO、整理 WordPress、讓生活更美好。如需更多信息,請訪問...。
  • Easy Watermark 》Easy Watermark 可以在圖片上傳到 WordPress 媒體庫時自動加上浮水印。您還可以手動添加浮水印到現有的圖片(全部一次或每個圖片)。浮水印可以是圖像、文字...。
  • Clean Image Filenames 》這個外掛可以在您上傳至媒體庫時自動將檔名中的語言重音符號轉換。轉換後的字符將會變成網頁和伺服器友好、無語言重音的字元。, 功能, , 將瑞典語、丹麥語、...。
  • WP User Avatars 》允許註冊使用者上傳並選擇自己的頭像。, 建議外掛, 如果您喜歡這個外掛,您可能會喜歡以下這些外掛!, , WP User Profiles, WP User Activity, WP User Avata...。
  • Media Sync 》您可以掃描所有在uploads目錄中的檔案,並查看哪些檔案實際上在媒體庫中,哪些檔案只是停留在那裡。然後,您可以選擇要將哪些檔案導入數據庫,從而使它們在媒...。
  • Compact WP Audio Player 》Compact WordPress Audio Player 插件是一個基於 HTML5 + Flash 混合的 WordPress 外掛,可以透過使用 shortcode 在 WordPress 文章或頁面中嵌入 mp3 音頻文...。
  • Media Library Categories 》此外掛可允許在 WordPress 媒體庫中使用分類。啟用後,媒體庫中會顯示下拉式的分類清單。, 您可以使用大量動作進行多項目的分類更改、新增或移除分類。, 在使...。

文章
Filter
Apply Filters
Mastodon