| 开发者 | codecaste |
|---|---|
| 更新时间 | 2026年11月3日 21:37 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp/v2/media)codecaste-media-and-safe-svg-file-upload-rules folder to /wp-content/plugins/.)No. Your hosting sets a hard maximum (the PHP settings upload_max_filesize and post_max_size), and a plugin cannot go above it. This plugin lets you set limits that are lower than or equal to your hosting limit. Ask your host if you need the hosting limit raised.
SVG files can contain scripts and links to outside files, which attackers can misuse. When you turn SVG on, the plugin removes scripts, unsafe attributes and other risky parts from each SVG before saving it. Files that cannot be cleaned are refused.
Yes. The plugin checks uploads that arrive through other plugins, so your size limits and blocked file types still apply. If one of your plugins has a problem with this, switch off Also check uploads from other plugins on the General tab.
No. Installing plugins or themes from a zip file and using WordPress importers are left alone.
It uses the default size limit from the General tab.
Yes. Common alternative spellings are treated as the same type, so a jpg rule also covers jpeg.
Check the message shown. Either the file is larger than the limit for its type, or its type is blocked. Raise the limit or remove the block rule on the Extension rules tab.
Yes. Switch off Enforce upload policies on the General tab. SVG cleaning stays active for safety.