Seem to have fixed it. It appears to me (I might be wrong) but I am validating the url to the file once uploaded not the filename itself. This lead to all sorts of crazy behaviour e.g. supporting spaces meant adding %20 matching!
I seem to have everything working now. On a completely different node if anyone know how to add a control that uploads image and validates the image dimensions please let me know.
Validation field on document type
Hi all,
New to Umbraco and already a big fan but I'm having a really frustrating problem. I'm adding validation to an upload field. I started with:
([a-zA-Z1-9]).(((j|J)(p|P)(g|G))|((p|P)(n|N)(g|G)))
Which works great. Then I added '/-' because some of the files have dashes:
([/-a-zA-Z1-9]).(((j|J)(p|P)(g|G))|((p|P)(n|N)(g|G)))
This doesn't work #-o
I've also been testing this to add support for GIFs:
([a-zA-Z1-9]*).(((j|J)(p|P)(g|G))|((p|P)(n|N)(g|G))|((g|G)(i|I)(f|F)))
This also doesn't work #-o
All help appreciated!
Seem to have fixed it. It appears to me (I might be wrong) but I am validating the url to the file once uploaded not the filename itself. This lead to all sorts of crazy behaviour e.g. supporting spaces meant adding %20 matching!
I seem to have everything working now. On a completely different node if anyone know how to add a control that uploads image and validates the image dimensions please let me know.
Did you ever find a solution to this. I would like to add an image upload size validation too.
is working on a reply...