The plugin additionally allows the mime types and file extensions to WordPress. In other words, your WordPress site can upload various file extensions.
توسط kimipooh
اگر با مشکلی مواجه شدهاید،
لطفاً آن را با جزئیات برای ما ارسال کنید.
🔒 برای ثبت گزارش خرابی باید وارد سایت شوید.
The plugin additionally allows the mime types and file extensions to WordPress. In other words, your WordPress site can upload various file extensions.
Please install this plugin and activate it.
If you use a language except English, please update the translation data in the updates of Dashboard.
If the multisite is enabled, please check the setting menu in the network administrator.
First of all, please check the “Media Type Settings” in the “Settings”.
You can see the list of allowed mime types and file extensions by WordPress.
When you add the mime type or file extension, the data will be added to last item in this list at the red color.
About the mime type list, please see the list of mime types in the information of the Internet.
Ex. http://www.freeformatter.com/mime-types-list.html
The user who have the manage_options permission can only add the setting.
If you would like to translate it to your language, please visit the GlotPress from https://wordpress.org/plugins/wp-add-mime-types/ .
If the multisite is enabled, the multisite network administrator can add/change/delete the mime type value in the multisite network setting menu. And the multisite network administrator or the site administrator can only see the past value (cannot change) before the site was migrated to the multisite.
If it fails to upload a file for the security reasons of WordPress despite having set it up with this plugin, then the MIME type of the uploaded file recognised by WordPress may be different from the MIME type you have set. In that case, you need to find out how WordPress recognised the MIME type of the file.
So, turn on “Enable to debug output for file types recognized by WordPress when a file is uploaded by the media.” setting.
and upload a file and set “mime type” recognized by WordPress in the setting of this plugin.
Please keep in mind that the “Enable to debug output for file types recognised by WordPress when a file is uploaded by the media.” setting must be turned off after you finish checking the mime type. If it is left on, file uploads will not work.
Reference: https://docs.google.com/presentation/d/1o4YHqP7s-EcctYSEYM2L7HLJtqhjA_mkY4VMjvTdj20/edit?usp=sharing (Google Slide)
WordPress recognizes the file mime type by finfo_file function (wp-includes/functions.php). However, sometimes, the standard MIME type of a file and the MIME type of a WordPress-recognized file are different. By enabling both this option (in setting menu) and the “Enable the attempt to determine the real file type of a file by WordPress core.”, the file type is displayed if it is from Media. PLEASE keep in mind that a file uploads are stopped while they are being processed if the both of two options are enabled. Therefore, be sure to disable this debugging option after debugging.
If the added mime type does not work, please deactivate other mime type plugins or the setting of other mime type plugins.
For example, if you install Media Library Assistant plugin, please turn off “Enable Upload MIME Type Support” in the Upload tag in this plugin setting.
Yes. The function was supported by Version 2.4.0.
WordPress sanitizes the filename in case of 2 or more extensions.
ex. XXX.YYY.ZZZ –> XXX_.YYY.ZZZ.
The plugin fixes the sanitized extension when a file is uploaded in the media in case of allowed extensions.
ex. XXX.YYY.ZZZ — sanitized –> XXX_.YYY.ZZZ — fixed the plugin –> XXX.YYY.ZZZ
In detail, please see sanitize_file_name function in “wp-includes/formatting.php”.
Yes. You can comment out above version 2.3.0.
Yes. WordPress core has implemented the security check for a file content since version 4.7.1.
The plugin’s default setting disables this security check .
The setting in the multisite network administration dashboard is taken precedence. The setting in each site administration dashboard is displayed, but the values aren’t applied.
The setting values in each site administration dashboard in case of activating the plugin in each site is applied.
Yes, each setting values are saved as the other setting items.
Yes, it is available on the version 3.0.0.
If the head in each line is set to ‘-‘, then the MIME type restricts.
ex. -bmp = image/bmp
The files which has “bmp” file extention becomes not to be able to upload.
قیمت:
رایگان
نگارش
آخرین انتشار
10 اردیبهشت 1405
آخرین بروزرسانی
4 ماه پیش
نصب های فعال
50,000+
نگارش وردپرس
وردپرس 6.2+
تست شده از نسخه
وردپرس 6.7.5
نگارش PHP
PHP 7.4+
تگ ها
نسخه ها
0 نسخه