如何将SVG
图片上传到Liferay 6.2 ga 5
?
我将portal-ext.properties
更改为包括:
journal.image.extensions=.gif,.jpeg,.jpg,.png,.svg
dynamic.data.mapping.image.extensions=*
shopping.image.extensions=*
blogs.image.extensions=*
当我编辑webcontent
时,我总是得到:
请输入一个有效扩展名的值(.gif,.jpeg,.jpg,.png)。
注意:我使用TOMCAT 7.0
。
有人遇到过这种情况吗?
答案 0 :(得分:0)
您是否尝试过在portal-ext.properties中进行设置:
<强> mime.types.web.images =图像/ GIF,图像/ JPEG,图像/ PJPEG,图像/ PNG,图像/ X-PNG,图像/ SVG dl.file.generic.extensions [image] = bmp,gif,jpeg,jpg,odg,png,svg