[WordPress] 外掛分享: Clean Filenames

前言介紹

  • 這款 WordPress 外掛「Clean Filenames」是 2011-02-16 上架。
  • 目前有 3000 個安裝啟用數。
  • 上一次更新是 2025-04-14,距離現在已有 19 天。
  • 外掛最低要求 WordPress 4.9 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 8 人給過評分。
  • 論壇上目前有 1 個提問,問題解答率 100% ,不低,算是個很有心解決問題的開發者團隊了!

外掛協作開發者

samuelaguilera |

外掛標籤

utf-8 | upload | filename | sanitize | international characters |

內容簡介

功能
以下是獲得更乾淨且安全的檔名所需的步驟:

移除或替換會使檔名不符合不支援國際語言和檔名的伺服器或第三方服務的特殊/國際字符(例如“España.png”會變成“Espana.png”,“prüfen”會變成“prufen”)。
將檔名中的任何“+”替換為“-”(例如“A+nice+picture.png”會變成“A-nice-picture.png”)。
將檔名中用於檔案擴展名之前的任何“.”字符替換為“-”(例如“A.nice.picture.png”將變成“A-nice-picture.png”)。
在運行所有字符替換篩檢器之後,將套用一個篩檢器,以確保檔名僅包含字母、數字、下劃線、短橫線和點。將從檔名中刪除任何其他字符。
最後,將檔名中的所有字母設置為小寫,以防止與大小寫不敏感的系統出現問題。

這減少了一些服務器、服務、外掛程式可能有問題處理擁有特殊或國際字符的檔名的問題。

這個外掛程式會在檔案上傳流程中執行,因此它只會在啟用外掛後上傳的檔案更改檔名。

它支援大量的國際字符,包括但不限於,白俄羅斯文、西里爾字母、捷克語、德語、希伯來語、匈牙利語、俄語、波蘭語、西班牙語、烏克蘭語和一些其他特殊字符(例如“№”,“@”,“$”等)。

如果您有任何問題或需要支援,請在提問之前查閱常見問題回答中的額外資訊。

要求

WordPress 3.0或更高版本

原文外掛簡介

Features
It takes the following steps for getting cleaner and safe to use filenames

Removes or replace special/international characters that can make your filenames not compliant with servers that don’t have support for international locales and filenames, or third-party services. (e.g. ‘España.png’ will become ‘Espana.png’, ‘prüfen’ will become ‘prufen’).
Replaces any ‘+’ in the filename with ‘-‘ (e.g. ‘A+nice+picture.png’ will become ‘A-nice-picture.png’).
Replaces any ‘.’ character before the one used for file extension with ‘-‘(e.g. ‘A.nice.picture.png’ will become ‘A-nice-picture.png’).
After running all character replacement filters, a filter is applied to ensure that the filename only contains letters, numbers, underscores, dashes, and dots. Any other character will be removed from the filename.
And finally all letters in the filename are set to lowercase to prevent issues with case insensitive systems.

This reduces problems with some servers, services, plugins… That may have problems handling filenames with special or international characters.
The plugin does its job during file upload process, so it’ll change only filenames for files being uploaded after plugin activation.
It supports a large number of international characters, including but not only, characters from belarusian, cyrillic alphabet, czech, german, hebrew, hungarian, russian, polish, spanish, ukrainian, and some other special characters (e.g. №, @, $, etc.).
If you have any questions or need support, please check FAQ for additional information before asking.
Requirements

WordPress 3.0 or higher

各版本下載點

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

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


1.0 | 1.1 | 1.2 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.8 | 1.0.9 | 1.1.1 | 1.2.2 | 1.2.3 | 1.2.4 | trunk |

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

  • Easy Theme and Plugin Upgrades 》WordPress 具有透過提供壓縮檔案安裝主題和外掛的內置功能。不幸的是,您無法使用相同的過程升級主題或外掛。相反,當試圖使用壓縮檔案升級時,WordPress 會...。
  • Drag and Drop Multiple File Upload for Contact Form 7 》拖放多檔案上傳器是一個簡單、直接的 WordPress 外掛擴充套件,可與 Contact Form7 一起使用,讓用戶可以使用拖放功能或網頁表單的常見瀏覽檔案來上傳多個檔...。
  • WP Extra File Types 》這個外掛讓你可以新增檔案類型到 Media Library 上傳程序預設的檔案類型清單中。。
  • Clean Image Filenames 》這個外掛可以在您上傳至媒體庫時自動將檔名中的語言重音符號轉換。轉換後的字符將會變成網頁和伺服器友好、無語言重音的字元。, 功能, , 將瑞典語、丹麥語、...。
  • File Upload Types by WPForms 》WordPress 檔案上傳類型外掛, 您是否希望您的 WordPress 網站接受更多類型、更自由地上傳檔案?我們創建了『File Upload Types』外掛,讓任何人都可以輕鬆地...。
  • Auto Upload Images 》當您想要儲存一篇貼文時,該外掛會搜索存在於貼文中的圖片URL並自動上傳和匯入外部圖片到WordPress上傳目錄中,並將圖片添加到媒體庫中,然後取代新圖片URL舊...。
  • WordPress File Upload 》這個外掛讓你或其他使用者可以從任何頁面、文章或側邊欄輕鬆、安全地上傳檔案到你的網站。, 只需要在任何 WordPress 頁面/文章中加入簡碼 [wordpress_file_up...。
  • Update Theme and Plugins from Zip File 》已過時:自 WP v5.5 起,此外掛功能已納入 WP 核心,因此不再需要此外掛。如果您正在運行 WP v5.5 或更高版本,可以停用並刪除 / 移除此外掛。此外掛在 WordP...。
  • Plus WebP or AVIF 》產生 WebP, , 在媒體庫加入圖片檔時,同時產生相對應的 WebP 檔案。, 透過 AJAX 批量製作網站上所有圖片的 WebP 檔案。, 在背景中製作網站上所有圖片的 WebP ...。
  • Max upload filesize 》這個外掛可以幫助你增加上傳檔案大小的限制。。
  • Filenames to latin 》, WordPress專業外掛程式, 檔案名稱轉換成拉丁字母, 捐贈, GitHub, , 此外掛可在上傳時將使用Cyrillic(烏克蘭,俄羅斯,白俄羅斯),德文,法文,波蘭文,西班...。
  • Disable Real MIME Check 》升級到 WordPress 4.7.1 後,在某些伺服器架設環境下,部份非圖片檔案上傳失敗。這個問題將在 4.7.3 中修復,請參閱 Trac 問題票。, 在此期間,這個外掛是一...。
  • Disable "BIG Image" Threshold 》在 WordPress 5.3 中,改進了圖像處理的方式,其中之一是引入了「大圖」(BIG images) 的概念。當上傳的圖像超過「大圖」閾值(預設為2560),系統會生成一張...。
  • Media Deduper 》媒體 Deduper 可以從您的 WordPress 媒體庫中找到並刪除重複的圖片和附件。安裝後,您將在媒體部分中擁有一個新的「管理重複項目」選項。, 在 Media Deduper ...。
  • File Away 》從您的伺服器目錄或頁面附件上傳、管理和顯示檔案,以時尚的清單或可排序的資料表方式呈現,還有更多更多的功能。。

文章
Filter
Mastodon