I found one unpleasant mistake. In model:

db_app.define_table('doc_images',
                Field 
<http://192.168.20.184/examples/global/vars/Field>('person',label='ФИО',writable=False),
                Field 
<http://192.168.20.184/examples/global/vars/Field>('file', 
'upload',label='Документ', requires=[IS_UPLOAD_FILENAME 
<http://192.168.20.184/examples/global/vars/IS_UPLOAD_FILENAME>(extension='^(pdf|tiff|png|bmp|jpeg|jpg)$'),IS_LENGTH
 <http://192.168.20.184/examples/global/vars/IS_LENGTH>(10485760, 1024)]),
                format = '%(title)s')


requires don't work for folder uploads. In ab_app.doc_images there are not 
record with .exe, .html etcetra, but in uploads I can see files with any 
expansion.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to