Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help] 请问下这个SVG上传的时候报error,是因为什么问题呢? #1982

Closed
sunningoo opened this issue May 31, 2021 · 4 comments

Comments

@sunningoo
Copy link

问题描述

当前svg无法上传。因为github的编辑也没法把源SVG文件上传上来,所以截图如下
image

相关截图

curl 'https://www.iconfont.cn/api/uploadIcons.json?ctoken=NAMCJysxSDdxLMC-fDpccd2V&_csrf=NAMCJysxSDdxLMC-fDpccd2V'
-H 'authority: www.iconfont.cn'
-H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="90", "Google Chrome";v="90"'
-H 'accept: /'
-H 'x-csrf-token: NAMCJysxSDdxLMC-fDpccd2V'
-H 'x-requested-with: XMLHttpRequest'
-H 'sec-ch-ua-mobile: ?0'
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36'
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary1K3sNnxxyft8DnKH'
-H 'origin: https://www.iconfont.cn'
-H 'sec-fetch-site: same-origin'
-H 'sec-fetch-mode: cors'
-H 'sec-fetch-dest: empty'
-H 'referer: https://www.iconfont.cn/icons/upload?spm=a313x.7781069.1998910419.d7543c323&projectId=1511895'
-H 'accept-language: zh-CN,zh;q=0.9,en;q=0.8'
-H 'cookie: cna=HkkxGLXGkGQCAbaWFlkrVg2E; EGG_SESS_ICONFONT=U8AXvqwdm-42-umGXGwgKq_Emj2wuVCkA87TjZ3dn6xm2T4whio3sIKoy4kjkuBSusLMQ-0MhcjWBE1FwhfGmMbpO9xPCEANAHIhoET_7kLMg-qVGhDYJaXU8YYDzntA36gDZGVLVGzr3YlM1x0N9yz0erhpKP9313YD2HeosAT4Ps_XtnRobU8gSMs09ePqgLG9Zkcah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uePaWuqnjXJ4gAkQWdiCtO-8EsH0SnICo6ZU7IpSHgDAUDHK965_tNqS0lGTOkF6iIe5WwM8xiAH3_6x82aiqUHoeqcnpUvNUDoonzKFY=; trace=AQAAADmWeCpnXg0AWRaWtmpxL5t2Xc56; ctoken=NAMCJysxSDdxLMC-fDpccd2V; u=16828; u.sig=pFp09oSU3WGX4BWPihDk40olwDC_FKYdEt7y7bL56Wc; xlly_s=1; locale=zh-cn; isg=BGtrNqZYjwZEAOzLMCXAvDZh-olVgH8CNjSict3pIKosfIjeZFBdU5Oa1rwS3Nf6'
--data-raw $'------WebKitFormBoundary1K3sNnxxyft8DnKH\r\nContent-Disposition: form-data; name="icons[]"; filename="icp.svg"\r\nContent-Type: image/svg+xml\r\n\r\n\r\n------WebKitFormBoundary1K3sNnxxyft8DnKH--\r\n'
--compressed
image

@sunningoo
Copy link
Author

是因为不支持渐变格式的svg吗?我试了很多渐变色的svg,都没法上传

@sunningoo
Copy link
Author

@yisibl
Copy link
Member

yisibl commented May 31, 2021

字体图标里暂时不支持渐变,请关注:#1938

@sunningoo
Copy link
Author

sunningoo commented May 31, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants