| 开发者 | technologywisdom |
|---|---|
| 更新时间 | 2026年8月3日 19:29 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0+ |
| 版权网址: | 版权信息 |
filetypes list.
Key Features
/wp-content/plugins/technologywisdom-upload-guard/No. The plugin only validates new uploads.
Yes. It hooks into WordPress’s core upload handling and works everywhere uploads are processed.
Yes. Upload Guard rules override the form’s filetypes list (e.g. only PNG if that is all you allow here). CF7 may allow broad types such as audio/*|video/*|image/*, but Guest/role rules still apply — so JPG, audio, or video are blocked when only PNG is allowed.
That message comes from Contact Form 7’s own limit: option (default is often 1 MB, e.g. limit:1mb). When Guest/role limits are enabled, Upload Guard overrides that CF7 size limit. A 17 MB file is allowed if Upload Guard Max Size is 20 MB (and PHP upload_max_filesize / post_max_size are high enough).
Yes. Max Width / Max Height are checked for Contact Form 7, other form plugins, custom front-end file inputs, and Media Library uploads.
Yes. Enable the Guest (not logged in) card in settings. Only the file types (and size/dimension limits) you allow there will upload for visitors — for example on contact form file fields. Upload Guard rules override the form’s filetypes list and size limit.
Yes. Each role has its own configurable rules. Leave fields empty to apply no restriction.
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.
The upload is blocked and a clear error message is shown.
Yes, if SVG is allowed in the role’s MIME settings. SVG can contain scripts — only enable it together with a trusted SVG sanitizer plugin.