Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
jpgs work fine. pngs and gifs result in the following error message:
The selected file [image_name].gif cannot not be uploaded. Only files with the following extensions are allowed: jpg, jpeg,png,gif.
Comment | File | Size | Author |
---|---|---|---|
#4 | filefield_292247.patch | 834 bytes | drewish |
Comments
Comment #1
drewish CreditAttribution: drewish commentedthat's strange... though you should be able to remove the extension check and just let it do the is image check.
Comment #2
Steve Dondley CreditAttribution: Steve Dondley commentedHow do you do that?
Comment #3
drewish CreditAttribution: drewish commentedif you're using the imagefield it already restricts it down to images. just remove the file extension check.
Comment #4
drewish CreditAttribution: drewish commentedturns out the problem was the filefield's javascript. String.replace() needs a global regular expression to switch all the commas.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.