четверг, 28 февраля 2019 г., 0:57:03 UTC+3 пользователь Dave S написал: > > Why not? > I think when we insert something in table we already know server-side filename. Also in firebird there is 'RETURNING' for that case. Yes, I use upload field.
db_app.define_table('doc_images', Field <http://192.168.20.184/examples/global/vars/Field>('file', 'upload', 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') -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.