WordPress is getting 404 with non-English filenames
Did you set your database collation to utf8_general_ci? If not, the Unicode characters might not work.
Did you set your database collation to utf8_general_ci? If not, the Unicode characters might not work.
Check this out, it might be helpful I am also looking for a good solution https://wordpress.stackexchange.com/a/400352/220907 How to hide media uploads by other users in the Media menu?
Permission to edit media files (photo captions, alt tags)
How to change media folder from created time of the post to publish date?
You can try to use the next code: // NAV: Different upload file size limits based on file type function wpcoder_upload_files_limits($file) { // Define custom file size limits based on file type $file_size_limits = array( ‘mp4’ => 64 * 1024 * 1024, // 64 MB ‘pdf’ => 30 * 1024 * 1024, // 30 MB … Read more
WordPress isn’t doing this, those files are served by the server underneath WordPress, aka Nginx/Apache/etc. This is because there’s a cost to loading WordPress and you don’t want to pay that cost for assets such as JPEG’s or other files in the uploads folder, it’s much faster to let Apache/Nginx do it as that’s something … Read more
The post_max_size line was still set to 16M. I set it to match upload_max_filesize and the file uploaded without error.
You can use this WP function wp_get_upload_dir to know the uploads directory path. Please note different website can choose not to use “year/month” fashion folder structure so using this function we will be advisable. And then for finding all webp file you can use FileSearchIterator of PHP $fileScanner = new FileSearchIterator( UPLOAD_BASE_PATH, true, array(‘webp’)); foreach($fileScanner … Read more
How to Upload a media item with alt text and description
Simplifying ‘Add Media’ Modal in front-end Content Editor