Linux 软件免费装
Banner图

TechnologyWisdom Upload Guard

开发者 technologywisdom
更新时间 2026年8月21日 20:06
WordPress版本: 7.1
版权: GPL-2.0+
版权网址: 版权信息

标签

media library file upload user roles file size upload restrictions

下载

1.0.0 1.0.2 1.0.1

详情介绍:

TechnologyWisdom Upload Guard gives administrators fine-grained control over media uploads in WordPress by enforcing restrictions based on user roles. You can define: Users with multiple roles receive the strictest combined limits. MIME types are validated with WordPress filetype checks (not only the browser-reported type). A dedicated Guest setting applies to visitors who are not logged in, for example file upload fields on public forms. Upload Guard rules override supported form upload restrictions, ensuring your configured file type, size, and image dimension rules are always enforced. Key Features Note: Allowing SVG is optional and risky unless you also use a trusted SVG sanitizer. If you upload a plugin ZIP via Plugins → Add New, that ZIP is blocked unless ZIP is allowed for your admin role in Upload Guard settings.

安装:

  1. Upload the plugin folder to /wp-content/plugins/technologywisdom-upload-guard/
  2. Activate the plugin through the Plugins menu in WordPress
  3. Go to TechnologyWisdom Upload Guard in the admin menu
  4. Enable a role and configure its upload rules
  5. Save changes

屏幕截图:

  • Screenshot 2: Provides helpful guidance and usage instructions for the plugin

常见问题:

Does this affect existing media files?

No. The plugin only validates new uploads.

Does it work with the Media Library and post uploads?

Yes. Upload Guard checks files uploaded through the WordPress Media Library and anywhere else WordPress accepts file uploads, including posts and pages.

Does Upload Guard override form upload restrictions?

Yes. Upload Guard rules override supported form upload restrictions. Even if a form allows broad file types such as audio/*, video/*, or image/*, only the file types allowed in Upload Guard settings can be uploaded.

Do image width/height limits apply to form uploads?

Yes. Maximum image width and height limits are enforced for Media Library uploads as well as uploads submitted through supported front end forms and custom upload fields.

Can I restrict uploads for guests and public forms?

Yes. Enable the Guest (not logged in) card in settings. Only the file types, file size, and image dimensions you allow there can be uploaded by visitors using public file upload forms. Upload Guard rules override supported form upload restrictions where applicable.

Can I restrict uploads for specific roles only?

Yes. Each role has its own configurable rules. Leave fields empty to apply no restriction.

Why can't I upload a plugin ZIP from the admin?

If Upload Guard is enabled for your role and ZIP is not in the allowed MIME list, WordPress will block the ZIP. Allow ZIP for the Administrator role, or temporarily disable that role's limits, before installing plugins via ZIP upload.

What happens if a user uploads a restricted file?

The upload is blocked and a clear error message is shown.

Does it support SVG uploads?

Yes, if SVG is allowed in the role's MIME settings. SVG files can contain scripts, so only enable SVG together with a trusted SVG sanitizer plugin.

更新日志:

1.0.2 1.0.1 1.0.0