# SVG 作为自定义徽章

**URL:** https://meta.discourse.org/t/svg-as-custom-badge/207838
**Category:** Support
**Created:** [2021年十一月1日 14:37 UTC](https://meta.discourse.org/t/svg-as-custom-badge/207838 "2021-11-01T14:37:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![drat3](https://avatars.discourse-cdn.com/v4/letter/d/5f8ce5/32.png) [@drat3](https://meta.discourse.org/u/drat3)
#### Post date: [2021年十一月1日 14:37 UTC](https://meta.discourse.org/t/svg-as-custom-badge/207838/1 "2021-11-01T14:37:43Z")

</div>

你好  
我想创建自定义徽章，但不允许上传 SVG 文件，有什么办法可以“绕过”这个限制吗？我有服务器的 root 权限。

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [2021年十一月1日 14:46 UTC](https://meta.discourse.org/t/svg-as-custom-badge/207838/2 "2021-11-01T14:46:02Z")

</div>

搜索 `authorized_extensions_for_staff` 站点设置，然后添加 `svg` 并刷新页面。之后，作为管理员，您就可以在徽章或其他任何站点位置上传 SVG 文件了。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2021年十二月1日 14:46 UTC](https://meta.discourse.org/t/svg-as-custom-badge/207838/3 "2021-12-01T14:46:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
