image field extension filter

Hi , now are possible always three chooses (all files,image files(…),HTML(…)), so the users can choose .bmp file and produce an error (the bmp image are dot displayed in image field on a form)

I would like to set the extension filter only on image file(.gif,.jpg,.jpeg,.png) as default ? it’s possibile ?

some idea,suggestions ?

Re: image field extension filter

some suggestion ?

Re: image field extension filter

please help !!!

Re: image field extension filter

The only way I see to do this is using PHP methods,

Validate the name field with the extension,

Concat the name of the field with the extension… something like that.

Re: image field extension filter

please could you make an example ?

where/when I should to call the php method ?

why concat ?

Thanks in advance