內容簡介
KDA Custom Upload Structure 外掛允許使用者將上傳的檔案儲存在標準 wp-content/uploads 目錄之外,並依據需求自訂檔案組織結構,提升媒體管理的靈活性與效率。
【主要功能】
• 自訂上傳位置,將媒體儲存在任意資料夾
• 依文章類型組織檔案,方便管理
• 支援年/月資料夾結構,保持原有格式
• 轉換檔名,將非拉丁字母轉為拉丁字符
• 可選擇在檔名中加入文章 ID 前綴
• 提供遷移工具,輕鬆移動現有媒體
外掛標籤
開發者團隊
原文外掛簡介
Custom Upload Structure lets you store uploaded files outside the standard
wp-content/uploads directory — for example in assets/public/ at the site
root — and organize them the way you want.
Features:
Custom upload location. Store all media in any folder relative to the
site root instead of wp-content/uploads.
Organize by post type. Files are placed into subfolders named after the
post type they belong to (e.g. assets/public/films/). Unattached files go
into a configurable “others” subfolder.
Year / month folders. Keep the default WordPress year/month structure
inside your custom folder.
Transliteration. Convert Cyrillic and other non-Latin file names to
Latin characters on upload (e.g. a Cyrillic file name is converted to its
Latin equivalent).
Post ID prefix. Optionally prefix each file name with the ID of the post
it is uploaded to (e.g. post 42 → 42-photo.jpg). Off by default.
Migration tool. Move existing media between the default folder and your
custom structure (and back) without breaking the Media Library. Includes a
dry run, optional replacement of old URLs inside post content, and a retry
mode for failed items.
Safety. The upload folder is protected with an index.php stub, file
permissions are normalized, and a full backup is required before any move.
All behaviour is controlled from Settings → Upload Structure.
