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 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 commentedHow do you do that?
Comment #3
drewish commentedif you're using the imagefield it already restricts it down to images. just remove the file extension check.
Comment #4
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) commentedAutomatically closed -- issue fixed for two weeks with no activity.