# Check if file has a pdf extension (case insensitive): |
Filename (before dot) regex
requires = IS_UPLOAD_FILENAME(filename='backup.*', ...)
Extension (after dot) regex.
requires = IS_UPLOAD_FILENAME(..., extension='tar.gz')
Which dot should be used as a filename / extension separator:
requires = IS_UPLOAD_FILENAME(..., lastdot=False)
0 means keep the case
requires = IS_UPLOAD_FILENAME(..., case=0)
" Web2py Book"