> > The only validator I see for non-image uploads is IS_UPLOAD_FILENAME, > which takes "extension" argument, so only one extension can be provided. > How come? I tried (for a test) to use tuple or list as the argument value, > but I get such error: >
filename and/or extension arguments are regular expressions according to the validator docstring, so you can use a regex for the extension argument specifying a list of possible extension names. Otherwise you could build your own validator to read the filename and test for a set of values. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.