you can IS_UPLOAD_FILENAME(extension='gif|jpg|png') You can use regular expressions
On Oct 25, 10:36 am, Wiiboy <[email protected]> wrote: > Hi, > I noticed that one can't pass multiple extensions the > IS_UPLOAD_FILENAME validator. I think that could be rather useful, > especially in my situation, so I don't have to write my own validator. > > Is there already a way to do this? If not, it should definitely be > added if possible. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

