Title: Auto Rename Media On Upload
Author: Jeff Sherk
Published: <strong>29. oktober, 2019</strong>
Last modified: 29. juni, 2024

---

Søg plugins

![](https://ps.w.org/auto-rename-media-on-upload/assets/banner-772x250.png?rev=2182568)

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

![](https://ps.w.org/auto-rename-media-on-upload/assets/icon-256x256.gif?rev=2296456)

# Auto Rename Media On Upload

 Af [Jeff Sherk](https://profiles.wordpress.org/jsherk/)

[Download](https://downloads.wordpress.org/plugin/auto-rename-media-on-upload.1.1.0.zip)

 * [Detaljer](https://da.wordpress.org/plugins/auto-rename-media-on-upload/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/auto-rename-media-on-upload/#reviews)
 * [Udvikling](https://da.wordpress.org/plugins/auto-rename-media-on-upload/#developers)

 [Support](https://wordpress.org/support/plugin/auto-rename-media-on-upload/)

## Beskrivelse

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.

## Skærmbilleder

[⌊Settings page⌉⌊Settings page⌉[

Settings page

## FAQ

### 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.

## Anmeldelser

![](https://secure.gravatar.com/avatar/8f7d6022548cb0c7e891ee2008d2b576be5ecfd6a119270c9ce397dc8008f430?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-23707/)󠁿

 [Jeff Sherk](https://profiles.wordpress.org/jsherk/) 15. november, 2019

I created this plugin because I needed this feature! Hope you love it too!

 [ Læs alle 3 anmeldelser ](https://wordpress.org/support/plugin/auto-rename-media-on-upload/reviews/)

## Bidragsydere & udviklere

“Auto Rename Media On Upload” er open source-software. Følgende personer har bidraget
til dette plugin.

Bidragsydere

 *   [ Jeff Sherk ](https://profiles.wordpress.org/jsherk/)

“Auto Rename Media On Upload” er blevet oversat til 1 sprog. Tak til [oversætterne](https://translate.wordpress.org/projects/wp-plugins/auto-rename-media-on-upload/contributors)
for deres bidrag.

[Oversæt “Auto Rename Media On Upload” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/auto-rename-media-on-upload)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/auto-rename-media-on-upload/),
tjek [SVN repository](https://plugins.svn.wordpress.org/auto-rename-media-on-upload/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/auto-rename-media-on-upload/)
via [RSS](https://plugins.trac.wordpress.org/log/auto-rename-media-on-upload/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 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

## Meta

 *  Version **1.1.0**
 *  Senest opdateret **2 år siden**
 *  Aktive installationer **100+**
 *  WordPress-version ** 5.2 eller højere **
 *  Testet op til **6.5.14**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/auto-rename-media-on-upload/) og
   [Swedish](https://sv.wordpress.org/plugins/auto-rename-media-on-upload/).
 *  [Oversæt til dit sprog](https://translate.wordpress.org/projects/wp-plugins/auto-rename-media-on-upload)
 * Tags
 * [automatically](https://da.wordpress.org/plugins/tags/automatically/)[media](https://da.wordpress.org/plugins/tags/media/)
   [rename](https://da.wordpress.org/plugins/tags/rename/)[upload](https://da.wordpress.org/plugins/tags/upload/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/auto-rename-media-on-upload/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  1 5-stjernet anmeldelse     ](https://wordpress.org/support/plugin/auto-rename-media-on-upload/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/auto-rename-media-on-upload/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/auto-rename-media-on-upload/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/auto-rename-media-on-upload/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/auto-rename-media-on-upload/reviews/?filter=1)

[Din anmeldelse](https://wordpress.org/support/plugin/auto-rename-media-on-upload/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/auto-rename-media-on-upload/reviews/)

## Bidragsydere

 *   [ Jeff Sherk ](https://profiles.wordpress.org/jsherk/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/auto-rename-media-on-upload/)

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](https://www.paypal.me/jsherk/10usd)