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

Auto Rename Media On Upload

描述

This plugin will automatically rename any media files you upload to the Media Library, by adding a prefix to the beginning of the filename based on the filetype.

For example, you can tell it to add the prefix “pic-” to the beginning of all .jpg files that you upload. So uploading an image called car.jpg would get renamed to pic-car.jpg

And since it changes the name of the file, it will also change the “slug” that wordpress uses based on this new name.

You can set an individual/unique prefix for each of the following filetypes:
jpg jpeg png bmp gif tif mp4 avi m4v mov flv mkv 3gp pdf doc docx xls xlsx ppt pptx mp3 ogg wav zip csv txt rtf odt

You will need to go to the settings page and set the prefix you want to use for each of the filetypes.

The default behavior is that it will NOT rename any uploaded files until you have set the prefix on the settings page.

螢幕截圖

  • Settings page

常見問題

Can I manually rename the files when I upload them?

  • No. In the settings you can set how the filename will be renamed when it is uploaded. File will be automatically renamed during the upload process.

Can I choose whether a file will be renamed when I upload it?

  • No. In the settings you can set how the filename will be renamed when it is uploaded. File will be automatically renamed during the upload process.

How do I disable renaming files of only certain types?

  • On the settings page, you can remove the prefix from the textbox and set it empty/blank for any filetype that you do not want to be renamed when it is uploaded. If a particular filetype has an empty/blank textbox, then it will not be renamed when it is uploaded.

How do I rename only files of one specific filetype, but not all the other filetypes?

  • On the settings page, you can remove the prefix from the textbox and set it empty/blank for any filetype that you do not want to be renamed when it is uploaded. If a particular filetype has an empty/blank textbox, then it will not be renamed when it is uploaded.

For what filetypes can I modify the prefix for the renaming of the file?

  • You can set an individual/unique prefix for each of the following filetypes: jpg jpeg png bmp gif tif mp4 avi m4v mov flv mkv 3gp pdf doc docx xls xlsx ppt pptx mp3 ogg wav zip csv txt rtf odt

The filetype I need to rename is not listed. What can I do?

  • Submit a support request and I will see if I can get that filetype added for you.

I have uploaded a file to the Media Library, but it was not renamed? What happened?

  • Make sure you go to the settings page and set the prefix you want to use for the particular filetype you are uploading and want renamed. And don’t forget to hit the SAVE button to make sure your changes are saved.

評價

2019年11月15日
I created this plugin because I needed this feature! Hope you love it too!
閱讀全部3個評價

貢獻者及開發者

“Auto Rename Media On Upload” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

Auto Rename Media On Upload 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 Auto Rename Media On Upload 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.1.0

  • Sanitize settings on save to prevent vulnerability for a high privilege user to perform stored cross-site scripting attack.

1.0.5

  • Compatible with WordPress v5.5

1.0.4

  • Shortened the name because it was too long in the settings menu.

1.0.3

  • Minor code cleanup

1.0.2

  • Added RTF and ODT formats.

1.0.1

  • Minor code cleanup

1.0.0

  • First stable release