Is adding a new image class necessary for svg?

When I attempt to upload an svg file I get this message
Sorry, but we couldn't determine the size of the image. Maybe your image is corrupted?
What am I doing wrong?