Silverstripe 3.1.5 - Upload Error SyntaxError: Unexpected token <

前端 未结 3 1824
广开言路
广开言路 2021-01-14 09:02

I need to Upload .svg files. To do that I added \'svg\' to my config.yml, to the allowed extensions on upload field an to the .htacces in assets/. Also all my assets directo

3条回答
  •  迷失自我
    2021-01-14 10:04

    Here's a module to have SVG work as images in SilverStripe: https://github.com/micschk/silverstripe-svg-images/

    See the README for general pointers on how to set up SVG-as-image if you don't want to require the module.

提交回复
热议问题