When you upload a file with a Russian name to the site, it is saved normally, but its header (post_title) is displayed as a URL.

Screenshot: enter image description here The problem appeared on several sites. I suspect that the problem is due to php.

  • Are these sites on the same hosting? - Valery Emelyanov

1 answer 1

The problem is solved through the attachment_fields_to_save filter. Inside the filter, simply assign the desired post_title . Based on the name of the file passed through urldecode , for example