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.

CommentFileSizeAuthor
#4 filefield_292247.patch834 bytesdrewish
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drewish’s picture

that's strange... though you should be able to remove the extension check and just let it do the is image check.

Steve Dondley’s picture

How do you do that?

drewish’s picture

if you're using the imagefield it already restricts it down to images. just remove the file extension check.

drewish’s picture

Project: ImageField » FileField
Status: Active » Fixed
FileSize
834 bytes

turns out the problem was the filefield's javascript. String.replace() needs a global regular expression to switch all the commas.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.