WordPress.org

Forums

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

  1. Axelsson
    Member
    Posted 9 months 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
    Forum moderator
    Posted 9 months 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 :/

    https://wordpress.org/plugins/filenames-to-latin/

Reply

You must log in to post.

About this Topic

Tags

No tags yet.