Title: WP Upload Restriction
Author: Sajjad Hossain
Published: <strong>آپریل 20, 2015</strong>
Last modified: جولای 6, 2025

---

Search plugins

![](https://ps.w.org/wp-upload-restriction/assets/banner-772x250.png?rev=2552505)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-upload-restriction_fad3d4.svg)

# WP Upload Restriction

 By [Sajjad Hossain](https://profiles.wordpress.org/msh134/)

[Download](https://downloads.wordpress.org/plugin/wp-upload-restriction.2.3.0.zip)

 * [Details](https://azb.wordpress.org/plugins/wp-upload-restriction/#description)
 * [Reviews](https://azb.wordpress.org/plugins/wp-upload-restriction/#reviews)
 *  [Installation](https://azb.wordpress.org/plugins/wp-upload-restriction/#installation)
 * [Development](https://azb.wordpress.org/plugins/wp-upload-restriction/#developers)

 [Support](https://wordpress.org/support/plugin/wp-upload-restriction/)

## Description

This plugin allows you to restrict your site users from uploading files of certain
types and control the maximum file upload size. Administrator can select the file
types and file upload limit by user role. This plugin restricts users from uploading
unwanted files using the WordPress media uploader.

It is very simple to use. You will be able give permissions role wise. To restore
WordPress’s default selection, just deactivate the plugin.

Any issue? Please let me know (http://sajjadhossain.com/contact-me/).

## Screenshots

[⌊Settings - Restriction page⌉⌊Settings - Restriction page⌉[

Settings – Restriction page

[⌊Settings - Custom File Type management page⌉⌊Settings - Custom File Type management
page⌉[

Settings – Custom File Type management page

## Installation

 1. Upload `wp-upload-restriction` folder to the plugins directory (`/wp-content/plugins/`).
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to Settings > WP Upload Restriction settings page.
 4. Check/uncheck the extensions you want to allow/deny for each role.
 5. Check “Restrict upload size to” checkbox to restrict file upload size and enter
    the file size in MB.
 6. Save the changes.

To return back to WordPress’s default selection, just deactivate the plugin.

## Reviews

![](https://secure.gravatar.com/avatar/feee639b2f06292cf8760afdf6aa08fc8a89bb16e3549887e6662672586e7f28?
s=60&d=retro&r=g)

### 󠀁[A few suggestions and bug report](https://wordpress.org/support/topic/a-few-suggestions-and-bug-report/)󠁿

 [Abdolaziz](https://profiles.wordpress.org/abdolaziz/) آقوست 28, 2025

HelloThanks for your awesome plugin.I use it in my marketplace. There are a few 
suggestions. [BUG] Even though I deselected all the image formats, I/users can upload.
json files. Restricting users to a specific number of files or min/max.

![](https://secure.gravatar.com/avatar/1e9e69c89d39ca4336420da9abde7d043110a0da5d777ba338126245a918ff6e?
s=60&d=retro&r=g)

### 󠀁[Works perfectly and still alive WordPress 6.6](https://wordpress.org/support/topic/works-perfectly-and-still-alive-wordpress-6-6/)󠁿

 [stephunique](https://profiles.wordpress.org/stephunique/) جولای 23, 2024

This is probably the only one of its kind on the wordpress plugin market and I am
so happy it not only works, but that it had been updated. Works perfectly fine for
Wordpress 6.6. Thank you so much for this!

![](https://secure.gravatar.com/avatar/48bcc7c243f9548524b7a4255c5f11a9c9387335dbf1e0fbc39b37044baa109d?
s=60&d=retro&r=g)

### 󠀁[Worked perfectly](https://wordpress.org/support/topic/worked-perfectly-325/)󠁿

 [Candace](https://profiles.wordpress.org/candace1961/) ژون 28, 2023

Thank you for this plugin!

![](https://secure.gravatar.com/avatar/ab21c3bf8fcb557d8a0758a6c4132b2ac7e8b85ab679bf33aadc743f0f42c081?
s=60&d=retro&r=g)

### 󠀁[No funciona](https://wordpress.org/support/topic/no-funciona-113/)󠁿

 [nextep](https://profiles.wordpress.org/nextep2/) دسامبر 22, 2022

Hace meses que no se actualiza y da mensajes de error al intentar configurarlo.

![](https://secure.gravatar.com/avatar/2ae7e5742904f58d7cb962a0be8e292b7772405452d57d54e623b61366e54436?
s=60&d=retro&r=g)

### 󠀁[Perfect!](https://wordpress.org/support/topic/almost-perfect-417/)󠁿

 [Gustavo Tadeu](https://profiles.wordpress.org/gtsantos/) فووریه 18, 2022

Very good indeed.

![](https://secure.gravatar.com/avatar/a8b86b6bc284b43b738d44f505697ed6db0acf493f34582871a30c21f2929017?
s=60&d=retro&r=g)

### 󠀁[Didn’t work](https://wordpress.org/support/topic/didnt-work-330/)󠁿

 [ksnakew](https://profiles.wordpress.org/ksnakew/) ژون 25, 2021

It only shows “Settings could not be saved.” and does nothing. In support section
there is several topics for this issue without answer or solution.

 [ Read all 15 reviews ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/)

## Contributors & Developers

“WP Upload Restriction” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Sajjad Hossain ](https://profiles.wordpress.org/msh134/)

[Translate “WP Upload Restriction” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-upload-restriction)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-upload-restriction/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-upload-restriction/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-upload-restriction/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-upload-restriction/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.3.0

 * Fixed: Settings were not saving when no mime types were selected.
 * Tested with WP version 6.8

#### 2.2.9

 * Fixed: Limit unit was saving but not showing the actual selection.
 * Tested with WP version 6.5.5

#### 2.2.8

 * Fixed security related issues.

#### 2.2.3

 * Minor fixes.

#### 2.2.2

 * New feature: Added option for selecting file size unit (MB and KB).
 * Compatibility check.

#### 2.2.0

 * New feature: Added option for managing custom file type.
 * UI improvements

#### 2.1.0

 * Role wise file upload size restriction added.
 * Fixed some minor issues.

#### 2.0.1

 * Fixed design break in settings page.

#### 2.0.0

 * Restructured the plugin to add role wise restriction.

## Meta

 *  Version **2.3.0**
 *  Last updated **1 ایل ago**
 *  Active installations **2٫000+**
 *  Tested up to **6.8.8**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-upload-restriction/)
 * Tags
 * [developer tool](https://azb.wordpress.org/plugins/tags/developer-tool/)[media](https://azb.wordpress.org/plugins/tags/media/)
   [upload](https://azb.wordpress.org/plugins/tags/upload/)
 *  [Advanced View](https://azb.wordpress.org/plugins/wp-upload-restriction/advanced/)

## Ratings

 3.7 out of 5 stars.

 *  [  8 5-star reviews     ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/?filter=2)
 *  [  3 1-star reviews     ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/)

## Contributors

 *   [ Sajjad Hossain ](https://profiles.wordpress.org/msh134/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-upload-restriction/)