[Gae] to increase support for the svg

[Gae] to increase support for the svg


GAE support for the svg, as it is octet stream (application / octet-stream) to process. If so, when the end of the URL is foo.svg this, you will get download window, instead of displaying patterns imagine.

If it can be displayed to a pattern, to make the server can specify the image / svg + xml in mime type.

Therefore, it is necessary to tell GAE in app.yaml.

The following is an example: [Reference 1]

- url: /svg/(.*.svg)
  static_files: svg/1
  upload: svg/(.*.svg)
  mime_type: image/svg+xml

The following is what I used for testing svg, is sozi do. The use of chrome, firefox can see.

http://rickystockinfo.appspot.com/svg/aot.svg

share it

Original: Large column  [gae] to increase support for the svg


Guess you like

Origin www.cnblogs.com/petewell/p/11445664.html
SVG