Title: Upload SVG
Author: html5maps
Published: <strong>2024 年 1 月 17 日</strong>
Last modified: 2025 年 12 月 3 日

---

搜索插件

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

![](https://ps.w.org/upload-svg/assets/icon-256x256.gif?rev=3022902)

# Upload SVG

 作者：[html5maps](https://profiles.wordpress.org/html5maps/)

[下载](https://downloads.wordpress.org/plugin/upload-svg.1.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/upload-svg/#description)
 * [评价](https://cn.wordpress.org/plugins/upload-svg/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/upload-svg/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/upload-svg/#developers)

 [支持](https://wordpress.org/support/plugin/upload-svg/)

## 描述

Upload SVG is a secure and user-friendly WordPress plugin that allows you to safely
upload and manage SVG files in your Media Library. SVG files can potentially contain
malicious code, but with Upload SVG, you can enable automatic sanitization to prevent
XML/SVG vulnerabilities on your website. This plugin ensures your SVG uploads are
handled with enhanced security while offering a seamless user experience.

### Features

 * Securely upload SVG files to your Media Library.
 * Enable automatic sanitization to protect against XML/SVG vulnerabilities.
 * Effortlessly manage and preview SVG files in your Media Library.
 * Restrict SVG uploads to trusted user roles for additional security.
 * Seamless integration with the latest version of WordPress.
 * Lightweight and optimized for optimal performance.

SVG Sanitization is implemented using the following library: [https://github.com/darylldoyle/svg-sanitizer](https://github.com/darylldoyle/svg-sanitizer).

## 屏幕截图

 * [[
 * Upload SVG Plugin Settings

## 安装

 1. Install through the WordPress directory or download, unzip, and upload the “upload-
    svg” folder to your /wp-content/plugins/ directory.
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. Go to “Upload SVG” to configure the plugin options.
 4. Enjoy safely managing SVG files on your WordPress website!

## 常见问题

### Can I upload SVG files without sanitization?

Yes, you can choose to enable or disable the automatic sanitization option based
on your requirements. However, we strongly recommend enabling it for enhanced security.

### Can I limit SVG uploads to specific user roles?

Absolutely! Upload SVG allows you to restrict SVG uploads to trusted user roles,
ensuring that only authorized users have the permission to upload SVG files.

## 评价

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

### 󠀁[Аll works](https://wordpress.org/support/topic/%d0%b0ll-works/)󠁿

 [scribering](https://profiles.wordpress.org/scribering/) 2024 年 3 月 18 日

Adds important functionality, SVG support. Does exactly what it is supposed to do.

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

### 󠀁[A wonderful plugin](https://wordpress.org/support/topic/a-wonderful-plugin-32/)󠁿

 [Николай](https://profiles.wordpress.org/n1ck500/) 2024 年 2 月 21 日

It is easy to manage and works fast!

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/upload-svg/reviews/)

## 贡献者及开发者

「Upload SVG」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ html5maps ](https://profiles.wordpress.org/html5maps/)

[帮助将「Upload SVG」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/upload-svg)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/upload-svg/)，查看[SVN仓库](https://plugins.svn.wordpress.org/upload-svg/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/upload-svg/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/upload-svg/)。

## 更新日志

#### 1.0.3

 * Minor fixes.

#### 1.0.2

 * Minor fixes.

#### 1.0.1

 * Bug fixes.

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**5 月前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 5.7 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/upload-svg/)
 * 标签
 * [sanitize](https://cn.wordpress.org/plugins/tags/sanitize/)[SVG](https://cn.wordpress.org/plugins/tags/svg/)
   [svg support](https://cn.wordpress.org/plugins/tags/svg-support/)[svg upload](https://cn.wordpress.org/plugins/tags/svg-upload/)
   [upload](https://cn.wordpress.org/plugins/tags/upload/)
 *  [高级视图](https://cn.wordpress.org/plugins/upload-svg/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/upload-svg/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/upload-svg/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/upload-svg/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/upload-svg/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/upload-svg/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/upload-svg/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/upload-svg/reviews/)

## 贡献者

 *   [ html5maps ](https://profiles.wordpress.org/html5maps/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/upload-svg/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.fla-shop.com/)