In my system I also upload some special file types .slave with MIME type application/zip. The plugin however seems to renaming my .slave files to .zip . This creates issues as the files are then downloaded by clients for reprogramming motors. They need to remain as .slave extensions. It seems and edit to the alias.php file solves it
‘slave’=>array(
‘application/zip’,
),
I presume this is the correct way to proceed?
]]>Many thanks for any help provided in advance.
I have uploaded your plugin. In my functions.php I have this code
function allow_special_uploads ( $existing_mimes=array() ) {
$existing_mimes[‘slave’] = ‘application/octet-stream’;
$existing_mimes[‘bin’] = ‘application/octet-stream’;
$existing_mimes[‘kess’] = ‘application/zip’;
return $existing_mimes;
}
add_filter(‘upload_mimes’, ‘allow_special_uploads’);
This allows me to upload .bin files with the defined MIME type. However, I sometimes get .bin files with a different MIME type. Namely the MIME type x-dosexec. I am unable to upload .bin files with this x-dosexec type. I can’t seem to permit .bin files to have two different MIME types.
Your plugin says Error: The file type could not be determined.
VALIDATION:
Naive Name: test.bin
Naive Extension: bin
Naive Type: application/octet-stream
Magic Type: application/x-dosexec
Best Type:
FINAL:
Name: test.bin
Extension:
Type:
Code: 64
SYSTEM:
Kernel: Linux nl1-ts109.a2hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
PHP: 8.1.28
Modules: Core; PDO; PDO_ODBC; Phar; Reflection; SPL; SimpleXML; bcmath; bz2; calendar; clos_ssa; ctype; curl; date; dba; dom; enchant; exif; fileinfo; filter; ftp; gd; gettext; hash; i360; iconv; imagick; imap; intl; json; ldap; libxml; litespeed; mbstring; mysqli; mysqlnd; odbc; openssl; pcntl; pcre; pdo_mysql; pdo_pgsql; pdo_sqlite; pgsql; posix; pspell; readline; session; shmop; soap; sockets; sqlite3; standard; sysvmsg; sysvsem; sysvshm; tidy; tokenizer; xml; xmlreader; xmlwriter; xsl; zip; zlib
WordPress: 6.5.4
Plugins: BeRocket_LGV_domain [1.1.4]; admin-menu-editor [1.12.2]; adminimize [1.11.11]; blob-mimes [1.3.19]; classic-editor-and-classic-widgets [1.3.8]; contact-form-7 [5.9.5]; creame-whatsapp-me [5.1.6]; decorator-woocommerce-email-customizer [1.2.9]; ewww-image-optimizer [7.7.0]; hide-login-page [1.1.9]; js_composer [7.7.1]; loco-translate [2.6.10]; ninjafirewall [4.5.11]; print-invoices-packing-slip-labels-for-woocommerce [4.5.3]; upb_parallax [1.5.15]; user-role-editor [4.64.2]; user-switching [1.7.3]; woo-checkout-field-editor-pro [2.0.2]; woo-stripe-payment [3.3.71]; woocommerce [8.9.3]; woocommerce-file-approval [9.9]; woocommerce-files-upload [76.7]; wordpress-seo [22.8]; worker [4.9.20]; wp-mail-smtp [4.0.1]
Theme: fortuna [3.20]
Hi,
to follow the reference in the file validation menu this is an activate and forget sort of plugin.
it would be nice to be able to hide/disable the plugin menu pages for example with a wp-config const or define()
Hi, I’m using a 3’rd party plugin which has upload files capibility throughout the plugin.
Will this plugin automatically work on any file upload no matter how it’s uploaded?
Please advise, thank you
]]>Hello, I am having a little trouble uploading a file to the media library. Also, it is important that customers be able to upload .ai files during the product ordering process. Customers will upload .ai files and we print them on their products.
Here is the validation that I copied from the test tool.
VALIDATION:
Naive Name: 13PPI2523B 1up Print Template.ai
Naive Extension:
Naive Type:
Magic Type: application/pdf
Best Type: application/postscript
FINAL:
Name: 13PPI2523B 1up Print Template.ai
Extension:
Type:
Code: 32
SYSTEM:
Kernel: Linux whm2.jonrodman.com 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64
PHP: 7.3.28
Modules: Core; PDO; Phar; Reflection; SPL; SimpleXML; Zend OPcache; bcmath; calendar; ctype; curl; date; dom; exif; fileinfo; filter; ftp; gd; gmp; hash; i360; iconv; imap; json; libxml; litespeed; mbstring; memcached; mysqli; mysqlnd; openssl; pcre; pdo_mysql; pdo_sqlite; posix; session; soap; sockets; sqlite3; standard; timezonedb; tokenizer; wddx; xml; xmlreader; xmlwriter; xsl; zip; zlib
WordPress: 5.8
Plugins: classic-editor [1.6.2]; easy-wp-smtp [1.4.7]; ga-google-analytics [20210719]; js_composer [6.7.0]; litespeed-cache [4.3]; ninja-forms [3.5.7]; ninja-forms-addon-manager [3.0.13]; ninja-forms-layout-styles [3.0.29]; ninja-forms-uploads [3.3.12]; ninja-tables [4.1.6]; revslider [6.5.7]; ultimate_vc [3.19.11]; ups-woocommerce-shipping [4.2.6]; woocommerce [5.6.0]; woocommerce-admin [2.5.1]; woocommerce-conditional-shipping-and-payments [1.9.5]; woocommerce-google-analytics-integration [1.5.2]; woocommerce-product-image-gallery-options [1.1.0]; woocommerce-securesubmit-gateway [1.13.0]; woocommerce-tm-extra-product-options [5.1]; wordpress-seo [16.9]; wordpress-seo-premium [16.9]; yikes-inc-easy-custom-woocommerce-product-tabs [1.7.7]
Theme: Pro-ChildTheme [2.1.6.1531330634]
]]>
Hello,
I installed the plugin but I still cannot upload .dxf in a gravity form.
Hosted at wpengine.
Is it impossible?
Thanks
Hi
I have a question about the plugin:
Is there a specific file uploading plugin you can recommend together with this plugin?
And a question about the file uploading plugin you recommend: Does the file upload come as an e-mail? Or does the file get uploaded to a map on a server?
Best regards
Sara
Hi there,
Thanks for this awesome plugin. My client is using a special SAT file (https://fileinfo.com/extension/sat) for their 3D modelling, is there any chance this extension can be added to the allowed list? At the moment they are renamed to .txt files.
VALIDATION:
Naive Name: testfile.SAT
Naive Extension: sat
Naive Type: application/octet-stream
Magic Type: text/plain
Best Type: text/plain
FINAL:
Name: testfile.txt
Extension: txt
Type: text/plain
Code: 107
SYSTEM:
Kernel: Linux vps.phoenixtapware.com.au 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
PHP: 7.4.13
Modules: Core; PDO; PDO_ODBC; Phar; Reflection; SPL; SimpleXML; Zend OPcache; bcmath; bz2; calendar; cgi-fcgi; ctype; curl; date; dba; dom; enchant; exif; fileinfo; filter; ftp; gd; gettext; gmp; hash; iconv; imap; intl; json; ldap; libxml; mbstring; mysqli; mysqlnd; odbc; openssl; pcntl; pcre; pdo_mysql; pdo_pgsql; pdo_sqlite; pgsql; posix; pspell; session; shmop; snmp; soap; sockets; sqlite3; standard; sysvmsg; sysvsem; sysvshm; tidy; tokenizer; xml; xmlreader; xmlrpc; xmlwriter; xsl; zip; zlib
WordPress: 5.5.3
Plugins: acf [5.9.3]; acf-focal-point [1.0.1]; acf-image-mapping-hotspots [0.1]; acf-quickedit-fields [3.1.1]; akismet [4.1.7]; better-search-replace [1.3.3]; blob-mimes [1.2.0]; classic-editor [1.6]; codepress-admin-columns [4.2.2]; gravityforms [2.4.21]; gravityformsmailchimp [4.8]; imagify [1.9.13]; loginizer-security [1.6.5]; post-types-order [1.9.5.2]; really-simple-ssl [4.0.3]; redirection [4.9.2]; regenerate-thumbnails [3.1.4]; taxonomy-terms-order [1.5.7.3]; w3-total-cache [0.15.2]; woocommerce [4.7.1]; woocommerce-additional-variation-images [1.7.22]; woocommerce-email-customizer-plus [1.2.3]; woocommerce-variation-swatches-and-photos [3.0.12]; wordpress-seo [15.3]; wp-all-import-pro [4.6.5]; wp-mail-smtp [2.5.1]; wp-user-avatar [2.2.8]; wpai-acf-add-on [3.2.9]; wpai-woocommerce-add-on [3.2.5]; yith-woocommerce-wishlist [3.0.16]
Theme:
Hi,
The files are now all being rejected from the server. I have put in a ticket to the host company and may require the client to move. There were only two plugin updates: Lord of the Files and Yoast, so I don’t know if the update changed something we needed.
A file validation returns: The file could not be uploaded to the server.
There is no “copy” button for me to click on to add the test results.
Thanks!
]]>HI,
Gravity Forms used to upload IGS, DXF, SLDPRT, STEP, X_T, DWG and no longer allows it since WordPress made changes in 5 branch. We have consulted the hosting and Gravity Forms and have received finger pointing. We have tried various functions and add mime types plugins and nothing is working. We found your plugin and have tried a couple of tests for DXF and IGS. After adding the functions to allow those mime types via your documentation, we are getting a response that the files should be allowed; however, they are still being converted to TXT files which returns a problem verifying file message. We tried to disable all plugins (except gravity forms) and switched to a default WordPress theme. Still same error. Hopefully you have some idea what could be the issue as we need all of these upload file types from our clients to do business.
Here is a result from our test:
VALIDATION:
Naive Name: Google Press Positioner.IGS
Naive Extension: igs
Naive Type: model/iges
Magic Type: text/plain
Best Type: model/iges
FINAL:
Name: Google Press Positioner.IGS
Extension: igs
Type: model/iges
Code: 109
SYSTEM:
Kernel: Linux host3usw.swhnet.net 3.10.0-1127.8.2.el7.x86_64 #1 SMP Tue May 12 16:57:42 UTC 2020 x86_64
PHP: 7.2.31
Modules: Core; PDO; Phar; Reflection; SPL; SimpleXML; bcmath; calendar; cgi-fcgi; ctype; curl; date; dom; exif; fileinfo; filter; ftp; gd; hash; iconv; imagick; imap; json; libxml; mbstring; mysqli; mysqlnd; openssl; pcntl; pcre; pdo_mysql; pdo_sqlite; posix; session; soap; sockets; sqlite3; standard; tokenizer; wddx; xml; xmlreader; xmlwriter; xsl; zip; zlib
WordPress: 5.5
Plugins: blob-mimes [1.1.7]; gravity-forms-zero-spam [1.0.3]; gravityforms [2.4.20]; instagram-feed [2.4.6]; wordfence [7.4.11]; wordpress-seo [14.8.1]
Theme: enfold-child [1.0]
VALIDATION:
Naive Name: logo.dxf
Naive Extension: dxf
Naive Type: application/dxf
Magic Type: text/plain
Best Type: text/plain
FINAL:
Name: logo.txt
Extension: txt
Type: text/plain
Code: 107
SYSTEM:
Kernel: Linux host3usw.swhnet.net 3.10.0-1127.8.2.el7.x86_64 #1 SMP Tue May 12 16:57:42 UTC 2020 x86_64
PHP: 7.2.31
Modules: Core; PDO; Phar; Reflection; SPL; SimpleXML; bcmath; calendar; cgi-fcgi; ctype; curl; date; dom; exif; fileinfo; filter; ftp; gd; hash; iconv; imagick; imap; json; libxml; mbstring; mysqli; mysqlnd; openssl; pcntl; pcre; pdo_mysql; pdo_sqlite; posix; session; soap; sockets; sqlite3; standard; tokenizer; wddx; xml; xmlreader; xmlwriter; xsl; zip; zlib
WordPress: 5.5
Plugins: blob-mimes [1.1.7]; gravity-forms-zero-spam [1.0.3]; gravityforms [2.4.20]; instagram-feed [2.4.6]; wordfence [7.4.11]; wordpress-seo [14.8.1]
Theme: enfold-child [1.0]
Hello,
Thank you for this great resource for validating files!
I have a client who is using a rare brf filetype for Braille encoded text files (https://fileinfo.com/extension/brf). I am able to validate and upload the mime type with your plugin, however the extension is renamed to txt repeatedly. I have found that if I add the brf definition to the TYPES const in lib/blobfolio/wp/bm/mime/aliases.php this resolves the issue:
'brf'=>array('text/plain')
I was just hoping this file type might be added to core.
For more information on the file type:
Validation
Naive Name:
NBA Bulletin–Summer 2020.BRF
Naive Extension:
brf
Naive Type:
text/x-algol68
Magic Type:
text/plain
Best Type:
text/plain
Final
Name:
NBA Bulletin–Summer 2020.BRF
Extension:
brf
Type:
text/x-algol68
Code:
109
Seems to be a conflict between this plugin and gravity forms.
When I disable this plugin MP3 uploads fine.
When I use the file validation tool below it reports it should be fine.
I can upload Mp3 via the WP dashboard media file uploader.
Ideas?
VALIDATION:
Naive Name: 8months-Int-ADP-AF01-2020-04-06-RC-v1.MP3
Naive Extension: mp3
Naive Type: audio/mpeg
Magic Type: audio/mpeg
Best Type: audio/mpeg
FINAL:
Name: 8month-Int-ADP-AF01-2020-04-06-RC.MP3
Extension: mp3
Type: audio/mpeg
Code: 125
SYSTEM:
Kernel: Linux ip-172-26-4-190 4.4.0-1110-aws #121-Ubuntu SMP Fri Jun 12 04:21:59 UTC 2020 x86_64
PHP: 7.3.14
Modules: Core; PDO; Phar; Reflection; SPL; SimpleXML; Zend OPcache; bcmath; bz2; calendar; cgi-fcgi; ctype; curl; date; dom; exif; fileinfo; filter; ftp; gd; gettext; gmp; hash; iconv; imagick; imap; intl; json; ldap; libxml; mbstring; mysqli; mysqlnd; openssl; pcntl; pcre; pdo_mysql; pdo_sqlite; posix; readline; session; soap; sockets; sqlite3; standard; tidy; tokenizer; xml; xmlreader; xmlrpc; xmlwriter; xsl; zip; zlib
WordPress: 5.4.2
Plugins: blob-mimes [1.1.6]; gravityforms [2.4.19]
Theme: transcriptdivas [2.0.2]
We get 408 Timeout error when using “Debug File Validation”. This is for files that have size >40MB (even though php.ini has a 100MB max size and appropriate memory setting). Files below this load fine. We’re on a AWS Lightsail instance
]]>VALIDATION:
Naive Name: ors-export-linestring.gpx
Naive Extension: gpx
Naive Type: text/gpx
Magic Type: text/plain
Best Type: application/vnd.ms-powerpoint
FINAL:
Name: ors-export-linestring.pot
Extension: pot
Type: application/vnd.ms-powerpoint
Code: 75
SYSTEM:
Kernel: Linux web30.n4.stackcp.net 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64
PHP: 7.3.19
Modules: Core; PDO; PDO_Firebird; PDO_ODBC; Phar; Reflection; SPL; SimpleXML; Zend OPcache; bcmath; bz2; calendar; cgi-fcgi; ctype; curl; date; dba; dom; enchant; exif; fileinfo; filter; ftp; gd; gettext; gmp; hash; iconv; imap; interbase; intl; ionCube Loader; json; ldap; libxml; mbstring; mysqli; mysqlnd; odbc; openssl; pcre; pdo_dblib; pdo_mysql; pdo_pgsql; pdo_sqlite; pgsql; posix; pspell; readline; session; shmop; snmp; soap; sockets; sodium; sqlite3; standard; sysvmsg; sysvsem; sysvshm; tidy; tokenizer; xml; xmlreader; xmlrpc; xmlwriter; xsl; zip; zlib
WordPress: 5.4.2
Plugins: super-progressive-web-apps [2.1]
Theme: Divi [4.4.8]
We’ve been using Lord of the Files with our WordPress-based multisite networks to help with file upload validation (especially with SVGs). Love the plugin and what it does. However, we’ve been experiencing memory errors when we try to update to any version later than 1.0.0: “There has been a critical error on your website”. How much memory does the plugin need, do you know what task in the update is consuming large amounts of memory, and why version 1.0.0 can be safely deployed and not version >=1.1.0? Happy to provide additional screenshots and server info if helpful in debugging. Thanks!
]]>Hi, I try to upload outlook msg files and until today it worked. But today I stumbled upon an email whose extension was renamed on backend from .msg to .doc and the file became unreadable
The content is OK though because I downloaded the file, manually replaced the extension back then opened the file with Outlook.
I noticed in tests that the plugin decides that the mime type for these files should better be word files still until today there was no extension change and that was good.
Is there a way to fix this or at least to correctly set mime type to keep the msg extension?
]]>We’re on version 0.8.9 on PHP7.0.x and noticed the new warning about requiring PHP7.1 or higher.
– If it really is a requirement for this plugin, is this requirement new as of version 0.9.0 ? I just don’t see a note in the changelog about this.
– Could you please point me at the code that is not PHP7.0.x compatible?
Thanks!
]]>How is it possible to disable the new “warning on the Update and Plugins pages if a plugin’s contributors have changed since the last update” which was added in 0.7.0 of “Lord of the Files: Enhanced Upload Security”?
Screenshots from a german website: https://imgur.com/a/zOIvm
While these warnings are not exactly a violation of 11. The plugin should not hijack the admin dashboard, they are still annoying.
These warnings are also not really something which would be expected from a plugin which does “content-based validation” of uploaded files.
Also there is no indication within the warnings which plugin is responsible for them.
Thanks for your plugin, but please reconsider this feature.
]]>Hi,
I am allowing users wp-admin access, with limited capabilities. Does this plugin also protect the standard media files upload in back-end?
Thanks!
]]>Why is there a hard requirement for PHP 5.4? The code seems to be compatible with 5.3
thanks
]]>