[WordPress] 外掛分享: Make Filename Lowercase

首頁外掛目錄 › Make Filename Lowercase
WordPress 外掛 Make Filename Lowercase 的封面圖片
1,000+
安裝啟用
★★★★
4.8/5 分(4 則評價)
198 天前
最後更新
問題解決
WordPress 3.0.1+ v1.0.2 上架:2011-02-10

內容簡介

這個外掛會將上傳媒體檔案名稱轉換成小寫,這是透過 sanitize_file_name 的篩選器進行操作的。這個想法是從 Stack Overflow 上關於「在 WordPress 3.0 後台上傳時重新命名檔案」的帖子中得來的。

這個外掛適用於 WordPress 3.0.1+。當使用者上傳任何大小寫混合的媒體檔案(圖片、視頻、音頻)時,檔案名稱會被轉換成小寫。這實際上會在上傳時更改檔案名稱。

例如:

MOVIE-FILE.MOV > movie-file.mov
Movie-File.wmv > movie-file.wmv
ImAgEfILe.gif > imagefile.gif
imageFile.JPG > imagefile.jpg
ETC > etc

注意:WordPress會將檔案副檔名轉換成小寫。而這個外掛則是在檔案名稱上執行 strtolower 操作。

更多資訊

造訪Red Bridge Internet 站台以獲取更多有關Make Filename Lowercase 外掛的相關資訊。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Make Filename Lowercase」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Sets uploaded media filename to lowercase as filter on sanitize_file_name. Based on post at Stack Overflow asking if there is a way to “Rename files during upload within WordPress 3.0 backend”.
Created for WordPress 3.0.1+ which saves any uploaded media filename (Image, Video, Audio) as lowercase. This effectively changes the name of the file at upload if a user were to upload a file with any uppercase characters.
For instance:

MOVIE-FILE.MOV > movie-file.mov
Movie-File.wmv > movie-file.wmv
ImAgEfILe.gif > imagefile.gif
imageFile.JPG > imagefile.jpg
ETC > etc

Note: WordPress sets file extension to lowercase. This plugin does a strtolower on the filename.
More Information
Visit the Red Bridge Internet site for more information about Make Filename Lowercase plugin.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon