Title: Restrict WP Upload Type
Author: Kushang Tailor
Published: <strong>2022 年 4 月 14 日</strong>
Last modified: 2026 年 7 月 8 日

---

搜尋外掛

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

![](https://ps.w.org/restrict-wp-upload-type/assets/icon-256x256.png?rev=3598062)

# Restrict WP Upload Type

 由 [Kushang Tailor](https://profiles.wordpress.org/kushang78/) 開發

[下載](https://downloads.wordpress.org/plugin/restrict-wp-upload-type.1.1.0.zip)

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

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

## 外掛說明

Restrict WP Upload Type gives you complete control over which files your users can
upload to WordPress. Prevent security risks, maintain brand standards, and eliminate
media library chaos with granular file type controls.

#### Why You Need Upload Restrictions

Uncontrolled uploads create serious problems:

 * Security vulnerabilities from unvetted file types
 * Brand inconsistency from mixed formats
 * Media library bloat from oversized files
 * Wasted time managing user uploads
 * Compliance violations with upload policies

#### What This Plugin Does

 * Control over **97 file extensions and MIME types**
 * Allow or block any format with a single click
 * Dedicated SVG file management with security
 * Real-time upload validation (prevents bad uploads before they happen)
 * Clear, customizable file type error messages guiding users to approved formats
 * Global file size limit controls
 * Zero configuration complexity—works instantly

#### Who Should Use This

 * WordPress site owners wanting better media management
 * Teams needing consistent upload policies
 * Digital agencies managing multiple client sites
 * Organizations with compliance requirements
 * Anyone managing user permissions on WordPress

#### Key Features

 * **Comprehensive Format Support**: Images (PNG, JPG, GIF, WebP, SVG, HEIC), Documents(
   PDF, DOCX, XLSX, PPT), Audio/Video (MP3, MP4, WAV, AVI), Archives (ZIP, RAR, 
   7Z), and more
 * **Flexible Controls**: Whitelist allowed formats or blacklist restricted ones
 * **SVG Security**: Dedicated toggle for SVG files with proper MIME type handling
 * **Lightweight Design**: Minimal server overhead, zero performance impact
 * **User Feedback**: Clear, customizable messages when file type uploads are blocked
 * **File Size Limits**: Set a global maximum upload size from the plugin settings
 * **WordPress Integrated**: Works with Gutenberg, classic editor, REST API uploads,
   and block-based themes

#### How It Works

 1. Install and activate the plugin
 2. Visit **Media > Restrict Files**
 3. Check the boxes for file types you want to allow
 4. Click Save
 5. Done! Your restrictions are immediately active

#### Performance Impact

This plugin adds minimal overhead. It uses lightweight MIME type filtering without
database bloat. Your site’s speed remains unaffected.

#### Future Roadmap

We’re actively developing Restrict WP Upload Type based on user feedback. Planned
features include role-based restrictions, custom MIME management, and upload logs.

#### Support

Have questions? Visit our support forum on WordPress.org. We’re here to help!

#### Learn More

 * [Plugin Homepage](https://wordpress.org/plugins/restrict-wp-upload-type/)
 * [Support Forum](https://wordpress.org/support/plugin/restrict-wp-upload-type/)

### Donate link

 * If you’d like to support development, please visit https://profiles.wordpress.
   org/kushang78/

#### What about security?

The plugin validates both file extensions and MIME types server-side to prevent 
header manipulation. It follows WordPress security best practices and standards.

#### Can I override the restrictions for specific users?

Not in the current version. The plugin applies restrictions globally. This feature
is being considered for future versions.

#### How often is this plugin updated?

The plugin is actively maintained and updated as needed for WordPress compatibility
and bug fixes. Subscribe to the support forum for update notifications.

#### What if I find a bug?

Please report issues in the support forum:
 https://wordpress.org/support/plugin/
restrict-wp-upload-type/

We take all bug reports seriously and work to fix them promptly.

#### Does this plugin work with multisite?

Yes, it’s fully compatible with WordPress multisite. Each site in the network can
have its own upload restrictions.

#### Can I test the plugin on a staging site first?

Absolutely! We recommend testing on a staging/development site first, then deploying
to production.

## 螢幕擷圖

[⌊All Settings in One page.⌉⌊All Settings in One page.⌉[

All Settings in One page.

## 安裝方式

#### Method 1: Direct Installation (Recommended)

 1. Log into your WordPress admin panel
 2. Go to **Plugins  Add New**
 3. Search for “Restrict WP Upload Type”
 4. Click **Install Now**
 5. Click **Activate**
 6. Visit **Media > Restrict Files** to configure your upload restrictions

Installation takes less than 1 minute.

#### Method 2: Manual Installation (FTP)

 1. Download the plugin from WordPress.org
 2. Unzip the downloaded file
 3. Upload the `restrict-wp-upload-type` folder to `/wp-content/plugins/` via FTP
 4. Log into WordPress and go to **Plugins**
 5. Find “Restrict WP Upload Type” in the list
 6. Click **Activate**
 7. Configure via **Restrict Files** page

#### Getting Started

After activation: 1. Navigate to **Media > Restrict Files** in your WordPress admin
2. Review the list of 97 file types 3. Check the boxes for formats you want to allow(
uncheck to restrict) 4. Click **Save Changes** 5. Your upload restrictions are immediately
active

That’s it! Wrong formats will now be blocked with a clear error message.

#### Need Help?

 * Check the FAQ section below
 * Visit the support forum: https://wordpress.org/support/plugin/restrict-wp-upload-
   type/

## 常見問題集

### How many file types does this plugin support?

Restrict WP Upload Type supports 97 file extensions with their corresponding MIME
types. This includes:
 * Images: PNG, JPG, GIF, WebP, SVG, HEIC, BMP, TIFF, ICO,
JPEG * Documents: PDF, DOCX, DOC, XLSX, XLS, PPTX, PPT, ODT, ODP, ODS * Audio: MP3,
WAV, M4A, FLAC, OGG, AAC, WMA, AIFF * Video: MP4, AVI, MOV, WMV, FLV, MKV, WEBM,
3GP * Archives: ZIP, RAR, 7Z, TAR, GZ, BZ2, CAB * And many more…

### Will this affect my existing uploaded files?

No. This plugin only controls new uploads. Previously uploaded files are unaffected
and remain accessible.

### Does this plugin support SVG files?

Yes! SVG files have a dedicated toggle in the plugin settings. This allows you to
independently control SVG uploads with proper MIME type validation and security 
considerations.

### What happens when someone tries to upload a blocked file?

They receive a clear, user-friendly error message indicating the file type isn’t
allowed. You can customize this file type message from Media > Restrict Files.

Example: “Upload blocked by Restrict WP Upload Type. This file type is not allowed
on this site.”

### Is this plugin multisite compatible?

Yes. Restrict WP Upload Type works with WordPress multisite installations. Each 
site can maintain independent upload restrictions.

### Does this plugin slow down my website?

No. The plugin uses lightweight MIME type filtering with minimal server overhead.
Performance impact is negligible—your site’s speed remains virtually unchanged.

### Can I restrict uploads for specific user roles?

The current version applies restrictions globally to all users. For role-based restrictions,
consider combining with user role management plugins. This feature is on our roadmap
for future versions.

### Where are the plugin settings stored?

Settings are stored in your WordPress options table (wp_options). When you uninstall
the plugin, all settings are removed. You can backup your configuration through 
WordPress backup solutions.

### Does this plugin support file size limitations?

Yes. You can set a global maximum file size in MB from Media > Restrict Files. Use
0 to follow your server and WordPress upload limits.

### Can I use this with WooCommerce?

Yes. The plugin will apply file restrictions to WooCommerce product uploads as well.
Configure the allowed file types in the plugin settings.

### What’s the difference between “allowing” and “restricting” types?

 * **Allow**: Check boxes for formats you want to permit. All others are blocked.
 * **Restrict**: In future versions, we’ll add an option to specify blocked formats
   
   while allowing everything else.

Currently, the plugin works on an “allow” basis for security.

### Is there a pro or premium version?

Restrict WP Upload Type is 100% free with no upsells or premium tier. All features
are available to every user.

### How do I get support?

 * Check this FAQ section
 * Visit the support forum: https://wordpress.org/support/plugin/restrict-wp-upload-
   type/
 * Review the plugin settings after installation

## 使用者評論

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

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-13785/)󠁿

 [superbr](https://profiles.wordpress.org/superbr/) 2025 年 1 月 30 日

Simple, fast and objective.

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

### 󠀁[It worked great until it didn’t](https://wordpress.org/support/topic/it-worked-great-until-it-didnt/)󠁿

 [daphnetalbot](https://profiles.wordpress.org/daphnetalbot/) 2024 年 5 月 7 日 
1 則留言

I have this installed on several sites. Everything is working except for one. Settings
would not save. Even though I deleted the plugin, my client is barred from all uploads.
I posted in the support area but there is no reply to the ticket. Now my client 
cannot upload documents even though I removed the plugin. Really need to know where
the settings are that this plugin created so I can undo them.

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

### 󠀁[Great little plugin](https://wordpress.org/support/topic/great-little-plugin-356/)󠁿

 [tufty](https://profiles.wordpress.org/tufty/) 2024 年 5 月 6 日 1 則留言

Excellent little plugin that will prove very useful. My use case for this is to 
discourage colleagues from uploading things they aren't supposed to, such as: png,
because almost certainly it's a large file and may have transparency that we don't
need webp, because we still have plenty of customers with older safari versions 
that can't use webp. We use cloudflare to deliver webp dynamically, so we want the
site itself to have one version that is fully compatible as a fallback. This plugin
could be improved further by: Tucking the Restrict Files admin menu item inside 
the media menu, and saying in the documentation where it is. Adding a file size 
restriction. Adding to the upload failure message to say what plugin has caused 
this limitation, so that a user has a clue what to do if they need an exception."
Sorry, you are not allowed to upload this file type, as it has been limited by the
Restrict Files plugin."

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

### 󠀁[Works like a charm](https://wordpress.org/support/topic/works-like-a-charm-2085/)󠁿

 [makemyday](https://profiles.wordpress.org/makemyday/) 2022 年 7 月 6 日

Simple to configure and highly effective. Good job!

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

## 參與者及開發者

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

參與者

 *   [ Kushang Tailor ](https://profiles.wordpress.org/kushang78/)

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

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

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

## 變更記錄

#### 1.1.0 (July 07, 2026)

 * Added Restrict Files under the WordPress Media menu
 * Added global maximum file size restriction
 * Added customizable blocked file type message
 * Improved blocked upload validation before WordPress shows the generic security
   error
 * Added settings search and enabled/disabled extension filters
 * Added nonce protection to the settings form
 * Added uninstall cleanup for new settings

#### 1.0.4 (May 24, 2026)

 * Added support for `.json` and `.epub` upload types
 * Improved plugin cleanup during deactivation and uninstall
 * Converted admin settings JavaScript to vanilla JavaScript
 * Updated plugin version and readme metadata

#### 1.0.3 (December 27, 2024)

 * **Fixed**: Checkbox design improvements for better usability
 * **Fixed**: MIME type value selection issue after form submission
 * **Improved**: Overall UI responsiveness

#### 1.0.2 (December 3, 2023)

 * **Fixed**: SVG MIME type validation and handling
 * **Fixed**: Multiple minor bugs and edge cases
 * **Improved**: Error message clarity

#### 1.0.1 (Previous)

 * Bug fixes and minor improvements

#### 1.0.0 (April 14, 2022)

 * **Initial Release**: Core functionality for file type restrictions
 * 97 file types supported
 * SVG file management
 * WordPress media library integration

## 中繼資料

 *  版本 **1.1.0**
 *  最後更新 **4 個月前**
 *  啟用安裝數 **300+**
 *  WordPress 版本需求 ** 5.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.8**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/restrict-wp-upload-type/)
 * 標籤:
 * [file type](https://tw.wordpress.org/plugins/tags/file-type/)[media](https://tw.wordpress.org/plugins/tags/media/)
   [mime](https://tw.wordpress.org/plugins/tags/mime/)[security](https://tw.wordpress.org/plugins/tags/security/)
   [upload restrictions](https://tw.wordpress.org/plugins/tags/upload-restrictions/)
 *  [進階檢視](https://tw.wordpress.org/plugins/restrict-wp-upload-type/advanced/)

## 評分

 5 星，滿分為 5 星

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

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

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

## 參與者

 *   [ Kushang Tailor ](https://profiles.wordpress.org/kushang78/)

## 技術支援

最近 2 個月解決的問題:

     總計 1 個問題，已解決 0 個

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