Skip to content

janw.me

Another tech Blog

WordPress has a function to validate file names

And it’s quite simple sanitize_file_name( 'R@ndom Fi(l)e?!.txt' ) will become R@ndom-File.txt

Official documentation sanitize_file_name

Author admin_janwPosted on 09-Feb-201829-Mar-2021Categories TILTags WordPress

Post navigation

Previous Previous post: Bash script get own path and name
Next Next post: Composer show available updates

Search

Menu

  • About
  • Plugins
    • Default featured image
    • Disable full site edit
    • uAfrica Shipping

RaspBerry Pi

  • Up and running
    • Opening a Pi to the outside world
    • Only allow ssh key login
  • Installing PHP7.4
  • Installing Nginx
    • Setup Letsencrypt SSL
  • Installing Mysql/MariaDB
  • Installing Selfoss
  • Install Extra Programs

Recent Posts

  • Github actions
  • Change saved gutenberg blocks
  • Add Color Pallets to Gutenberg child theme
  • Check DNS records in terminal
  • WordPress Settings API save post
  • Installing WordPress Coding standards Globally
janw.me Proudly powered by WordPress