WP Sanitize File Name Plus

Plugin Banner

WP Sanitize File Name Plus

by Yslo

Download
Description

Empty spaces and special characters can create some problems.

Features

  • Improved default function sanitize_file_name()
  • Remove latin special characters used in file name
  • Make file name lowercase
  1. Download and extract plugin files to wp-content/plugin directory.
  2. Activate the plugin through the WordPress admin interface.
  1. Activate the plugin

    Activate the plugin

  2. File with special characters

    File with special characters

  3. File name sanitized in Media Library

    File name sanitized in Media Library

  4. File name sanitized in Media Library (zoom)

    File name sanitized in Media Library (zoom)

Installation Instructions

  1. Download and extract plugin files to wp-content/plugin directory.
  2. Activate the plugin through the WordPress admin interface.

How on Earth could I live without this plugin?

By dzso on July 11, 2018

Should be a part of WordPress. Brilliant work, thanks so much! <3

Perfect!

By joseyaz on April 20, 2017

THANKS for the great work you have done

Does what it promises

By vgz (veganz) on September 27, 2016

I tested some other file name sanitize plugins, but this is the only one which I had absolutely no issues with. File names get sanitized in a way I expect it (like "ä" gets "ae" and not "-" like other plugins handle it). Also, WordPress features like suffixing of file names if a file name is duplicate still works. It's just a great little plugin, thanks for sharing it with us.

Such awesome, much wow.

By jimmy_r (Jimmy_R) on September 3, 2016

No more pesky nginx / git deploy explosions with this plugin! So much win.

Removes spaces and other disrupting characters from filenames perfectly.

By Bjarne Oldrup (oldrup) on September 3, 2016

WP Sanitize File Name Plus might not have many installs, but that does not change, that its one of the most useful small plugins I install every time I create a new site, to ensure sane and friendly filenames on uploaded media, be it images or pdf files. Highly recommended. Hoping for af WP 4.5 verification and update any time soon! 😀

Awesome

By chgsantos on September 3, 2016

After testing multiple plugins, this is the best!

Briefly testet in WP 4.3.1 - cleans up those filenames!

By netbjarne on September 3, 2016

My end-users attach documents and pictures with horrendous names (I live in Denmark), and while it should be ok for a file to be named "Opskrift på æblegrød.pdf" it results in horrible URLs when space and non-latin characters are encoded.

WP Sanitize File Name Plus FIXES that for me, both when uploading files manually, and when imported by Postie (mailing posts to site). I'm very satisfied.

Would be great if plugin would be officially verified to be compatible with the current WordPress version, alas it seems to be working fine.

1.0.3

  • Filter improvements

1.0.2

  • Fix : Firefox/MacOS

1.0.1

  • Make file name lowercase

1.0.0

  • Initial version
Back to top