Currently, the isImage check in upload.py looks at the mimetype to determine if
a file is likely an image. Since svg files are "image/svg", it returns true,
and then tries to display the file as in img tag in diff view.
We should exclude image/svg and treat as text files.
Related Chromium bug: https://code.google.com/p/chromium/issues/detail?id=247791
Original issue reported on code.google.com by jparent@chromium.org on 7 Jun 2013 at 9:04
Original issue reported on code.google.com by
jparent@chromium.org
on 7 Jun 2013 at 9:04