how did they (.exe, .html ...) get there?
There is no any hard link between db and the folder 'uploads', you can kill
all files in the folder, but web2py will still think that they are in it.
+ read the book and feel the difference between just 'insert' and
'validate_and insert'
On Friday, November 16, 2018 at 4:16:18 PM UTC+3, Константин Комков wrote:
>
> 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.