Silverstripe 3.1.5 - Upload Error SyntaxError: Unexpected token <

前端 未结 3 1813
广开言路
广开言路 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:00

    The problem "SyntaxError: Unexpected token <" is caused by an error being returned via HTML instead of a data stream in my experience. So I'd look at the contents of the network tab response and expect to see a stack trace with an error.

提交回复
热议问题