Part of users and me don't have problem, but another part of users can't 
load files. On server I see error:

*<class 'FileNotFoundError'> [Errno 2] No such file or directory: 
'C:\\inetpub\\wwwroot\\applications\\test\\databases\\..\\uploads\\doc_images.file.b520635e438be8d7.646f635f696d616765732e66696c652e383062646532666332326635616663382e3331333533393332333333393330333133383339333733363338333633303333333733343333333433303335333133343336333333393333333533383334333132653661373036372e6a7067.jpg'*

my tables.py
db_app.define_table('doc_images', Field('person', label='ФИО', 
writable=False), Field('doctype', 'integer'),
                    Field('file', 'upload', label='Документ',
                          
requires=[IS_UPLOAD_FILENAME(extension='^(pdf|tiff|png|bmp|jpeg|jpg)$'),
                                    IS_LENGTH(10485760, 1024)]), 
format='%(title)s')
line with error in controller:
load = db_app.doc_images.validate_and_insert(person=f'{f} {i} {number} 
{email}',
                                                                
 doctype=document.doctype, file=document[key])

What I need to do in that case?

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/d130aeda-d91c-4b99-8c30-f5c749ad7aceo%40googlegroups.com.

Reply via email to