Rename uploaded media if there's å,ä,ö in the filename (3 posts)

  1. Axelsson
    Posted 1 year ago #

    WordPress do rename space to "-", but it does not rename some chars like å, ä, ö for example. These chars can cause 404 errors and I dont see why WP doesnt just rename them to a and o.

    What's the reason for this?

  2. Andrew Nevins
    Forum moderator
    Posted 1 year ago #

    Edit: Sorry misread

  3. https://codex.wordpress.org/Function_Reference/sanitize_file_name

    That's what we use, and it doesn't block those characters because they actually ARE valid. Just not to all browsers :/


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.