PHPackages                             piotrpress/upload-mimes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. piotrpress/upload-mimes

ActiveWordpress-plugin[Mail &amp; Notifications](/categories/mail)

piotrpress/upload-mimes
=======================

This plugin allows you to define MIME types for file uploads in WordPress via the UPLOAD\_MIMES constant.

v0.1.0(3mo ago)020GPL-3.0-or-laterPHPPHP &gt;=7.4

Since Feb 18Pushed 3mo agoCompare

[ Source](https://github.com/PiotrPress/wordpress-upload-mimes)[ Packagist](https://packagist.org/packages/piotrpress/upload-mimes)[ Docs](https://github.com/PiotrPress/wordpress-upload-mimes)[ RSS](/packages/piotrpress-upload-mimes/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

WordPress Upload Mimes
======================

[](#wordpress-upload-mimes)

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
----------------------------------------------

[](#usage-via-php-constant-in-wp-configphp-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
------------

[](#requirements)

PHP &gt;= `7.4` version.

License
-------

[](#license)

[GPL v3 or later](license.txt)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance82

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

90d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10326736?v=4)[Piotr Niewiadomski](/maintainers/PiotrPress)[@PiotrPress](https://github.com/PiotrPress)

---

Top Contributors

[![PiotrPress](https://avatars.githubusercontent.com/u/10326736?v=4)](https://github.com/PiotrPress "PiotrPress (1 commits)")

---

Tags

pluginwordpressmimefileuploadwptypesuploads

### Embed Badge

![Health badge](/badges/piotrpress-upload-mimes/health.svg)

```
[![Health](https://phpackages.com/badges/piotrpress-upload-mimes/health.svg)](https://phpackages.com/packages/piotrpress-upload-mimes)
```

###  Alternatives

[silverstripe/mimevalidator

Checks uploaded file content roughly matches a known MIME type for the file extension.

102.0M9](/packages/silverstripe-mimevalidator)[itinerisltd/wp-phpmailer

WP PHPMailer provides a clean and simple way to configure WordPress-bundled PHPMailer library, allowing you to quickly get started sending mail through a local or cloud based service of your choice.

6231.6k](/packages/itinerisltd-wp-phpmailer)[xobotyi/php-mime-type

A comprehensive MIME-types lib for PHP.

317.2k](/packages/xobotyi-php-mime-type)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
