As instructed by quicksketch (http://drupal.org/node/321563#comment-1374176), I'm opening a new case for v5.x-2.6 because this is still happening. I upgraded from 5.x-2.1 to 5.x-2.6 and while testing a pre-existing image field I was not able to upload any images even though they were allowed in the "Permitted upload file extensions" section.

I wasn't able to get this to function properly until I went into the configuration for this field, removed all the extensions, saved it, went back into configuration (the extensions were prefilled in there again), deleted the default prefilled extensions and manually re-entered the extensions again. That fixed it.

When ever I tried removing all the extensions, saving the change, going back into configuration (default extensions prefilled) and saving again, I still was not able to upload any of the allowed image types. I had to re-enter the extensions myself in order for the image field to follow my permitted file extensions.

Hope this helps.

Comments

quicksketch’s picture

This issue is also related #321565: Editing an imagefield widget inserts default file_extension text back in. I'm not working on the Drupal 5 version much. I'd be happy to accept a patch to correct this problem, but it's hard for me to spend the time using the Drupal 5 version of ImageField since the D6 version was a complete rewrite and they don't share any code.

quicksketch’s picture

Als’s picture

Gregrunner's workaround works for me until I add the 3rd extension to the list.
Then, only the first extension listed remains accepted. Others are not.
I. e. empty configuration field
-> add GIF as first allowed extension: Imagefield now accepts GIF images
-> add JPG as 2nd allowed extension: Imagefield accepts GIF and JPG
-> add PNG as 3rd extension: Imagefield accepts GIF, does not accept JPG and PNG
-> add JPEG as 4th extension: Imagefield accepts GIF, does not accept the others

Hope the above helps identify the problem. Unfortunately I cannot provide a patch!

Als’s picture

[Edit: this message contained invalid information]

kevinwalsh’s picture

subscribin

plan9’s picture

Subscribing

quicksketch’s picture

Status: Active » Closed (won't fix)

Closing out Drupal 5 issues.