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

Question about loading of SVG images #366

Closed
maxlysenko opened this issue Oct 16, 2015 · 2 comments
Closed

Question about loading of SVG images #366

maxlysenko opened this issue Oct 16, 2015 · 2 comments

Comments

@maxlysenko
Copy link
Contributor

I have a question about loading of SVG images.
For example I have the following folder structure:

/user
└─/pages
  ├─/01.home
  │ ├─/_header
  │ └─/_body
  ├─/02.blog
  │ ├─/blog-item-1
  │ ├─/blog-item-2
  │ ├─/blog-item-3
  │ └─/docs
  │   └─/images
  │     ├─image.png
  │     ├─image.jpg
  │     └─image.svg
  └─/error

So I have three images in the /user/pages/02.blog/docs/images folder.

Next, if I open the following URLs

http://site.local/blog/docs/images/image.png
http://site.local/blog/docs/images/image.jpg

PNG and JPEG image files will open in browser.

But if I try URL for SVG image file

http://site.local/blog/docs/images/image.svg

Browser starts to download the file because it loads SVG image with Content-Type: "application/octet-stream".

What can be done to load SVG file as an image?

@flaviocopes
Copy link
Contributor

Fixed in develop, thanks for reporting!

@sphkress
Copy link

sphkress commented Apr 5, 2017

I just found out, SVG is working when using it inside an IMG, but when using it as OBJECT, it's still trying to download the file instead of displaying it. Is this really intended?

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

3 participants