Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I've added the SVG file extension for image uploads via admin/structure/types/manage/image/fields/gallery_image, as you see below:

enter image description here

But when I go to upload an image, I'm still not allowed to upload SVG.

enter image description here

I definitely pressed "Save" in the admin page, and I cleared the cache, and I even see the settings as I wanted them in the database, when I inspect the field_config_instance table. There must be some other table or cache that's not updating. Any idea?

share|improve this question

1 Answer 1

The Image widget internally allows (and silently enforces post Drupal 6) the use of only the png, gif, jpg and/or jpeg extensions. So, while you can remove an extension from a field, eg, I have removed gif from most of my implementations to avoid anything animated, you can't add any to this list. I would imagine this is because it in itself displays the image after being uploaded and didn't want to break any displays in older IE browsers in the actual form (plus, who knows how image styles would work on them as well :)

share|improve this answer
    
Good answer, but what a pity. –  Joe Corneli Dec 28 '13 at 23:32
    
A discussion on d.o is here: drupal.org/node/1014816 –  Joe Corneli Dec 28 '13 at 23:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.