IS_IMAGE(extensions = ('jpeg', 'png')) actually checks the file type by opening it.
IS_UPLOAD_FILENAME(extension = '(avi|flv)') only checks the extension using regex. On Apr 8, 7:18 pm, 黄祥 <steve.van.chris...@gmail.com> wrote: > hi, > > i have a problem using validator IS_UPLOAD_FILENAME() to check upload > file neither avi or flv extension, is it support to check multiple > extension like on IS_IMAGE() > e.g. > IS_IMAGE(extensions = ('jpeg', 'png')) > is it support to use > IS_UPLOAD_FILENAME(extensions = ('avi', 'flv')) > thank you