Title: WP Upload Restriction
Author: Sajjad Hossain
Published: <strong>2015 年 4 月 20 日</strong>
Last modified: 2025 年 7 月 6 日

---

搜尋外掛

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

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# WP Upload Restriction

 由 [Sajjad Hossain](https://profiles.wordpress.org/msh134/) 開發

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

 * [詳細資料](https://tw.wordpress.org/plugins/wp-upload-restriction/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wp-upload-restriction/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wp-upload-restriction/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wp-upload-restriction/#developers)

 [技術支援](https://wordpress.org/support/plugin/wp-upload-restriction/)

## 外掛說明

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/).

## 螢幕擷圖

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

## 安裝方式

 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.

## 使用者評論

![](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/) 2025 年 8 月 28 日

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/) 2024 年 7 月 23 日

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/) 2023 年 6 月 28 日

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/) 2022 年 12 月 22 日

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/) 2022 年 2 月 18 日

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/) 2021 年 6 月 25 日

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.

 [ 閱讀全部 15 則使用者評論 ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈WP Upload Restriction〉的開發相關工作。

參與者

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

[將〈WP Upload Restriction〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp-upload-restriction)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wp-upload-restriction/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/wp-upload-restriction/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/wp-upload-restriction/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wp-upload-restriction/)。

## 變更記錄

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

## 中繼資料

 *  版本 **2.3.0**
 *  最後更新 **1 年前**
 *  啟用安裝數 **2,000+**
 *  已測試相容的 WordPress 版本 **6.8.10**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-upload-restriction/)
 * 標籤:
 * [developer tool](https://tw.wordpress.org/plugins/tags/developer-tool/)[media](https://tw.wordpress.org/plugins/tags/media/)
   [upload](https://tw.wordpress.org/plugins/tags/upload/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-upload-restriction/advanced/)

## 評分

 3.7 星，滿分為 5 星

 *  [  8 個 5 星使用者評論     ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/?filter=5)
 *  [  2 個 4 星使用者評論     ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/?filter=3)
 *  [  1 個 2 星使用者評論     ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/?filter=2)
 *  [  3 個 1 星使用者評論     ](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wp-upload-restriction/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp-upload-restriction/)