piotrpress / upload-mimes
This plugin allows you to define MIME types for file uploads in WordPress via the UPLOAD_MIMES constant.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:wordpress-plugin
pkg:composer/piotrpress/upload-mimes
Requires
- php: >=7.4
This package is auto-updated.
Last update: 2026-02-18 09:31:48 UTC
README
This plugin allows you to define MIME types for file uploads in WordPress via the UPLOAD_MIMES constant.
Usage via PHP constant in wp-config.php file
define( 'UPLOAD_MIMES', [ 'jpg|jpeg|jpe' => 'image/jpeg', 'png' => 'image/png', 'gif' => 'image/gif', 'ico' => 'image/x-icon', 'pdf' => 'application/pdf', 'zip' => 'application/zip', ] );
Requirements
PHP >= 7.4 version.