[web2py] Re: Problem with upload field

2020-06-21 Thread Константин Комков
I tried to load file with long filename until that file was loaded. So maximal length for filename is 34 symbols. I do like that: last_symbol = len(document[key].filename) - 1 while document[key].filename[last_symbol] != '.': last_symbol -= 1 without_ext = document[key].filename[:last_symbol]

[web2py] Re: Problem with upload field

2020-06-19 Thread Dave S
On Friday, June 19, 2020 at 4:30:12 AM UTC-7, Константин Комков wrote: > > I am very happy today! I can find user who can't load file and talk with > him. User can't load file with name: > ФГБОУ ВО Липецкий государственный педагогический университет им. П.П. > Семенова-Тян-Шанского > > filename

[web2py] Re: Problem with upload field

2020-06-19 Thread Константин Комков
I am very happy today! I can find user who can't load file and talk with him. User can't load file with name: ФГБОУ ВО Липецкий государственный педагогический университет им. П.П. Семенова-Тян-Шанского filename in error for that file is doc_images.file.9bbb3bdd72dc6f61.d0a4d093d091d09ed0a320d09

[web2py] Re: Problem with upload field

2020-06-19 Thread Константин Комков
*Dave*, hello and thank you for attention! You are right my user (my colleague) load file with name in web2py format and don't tell me about it (: But I have error in any way becouse there is users which can't load file with web2py format and I don't know how they are doing that. I have examples

[web2py] Re: Problem with upload field

2020-06-18 Thread Dave S
On Thursday, June 18, 2020 at 6:26:32 AM UTC-7, Константин Комков wrote: > > I thought that there is problem f'{f} {i} {number} {email}' here, but on > my computer I can send document without problem. > I and another user (with the same data and loading file) having different > result (: > Why

[web2py] Re: Problem with upload field

2020-06-18 Thread Константин Комков
I thought that there is problem f'{f} {i} {number} {email}' here, but on my computer I can send document without problem. Why in error I see databases\\..\\uploads? What means two points? That folder have next structure: - test - databases - uploads -- Resources: - http://web2py.com - ht

[web2py] Re: problem with upload field

2011-06-05 Thread pbreit
Not quite sure what you are asking. Are you not able to use Web2py's file uploading features? http://web2py.com/book/default/chapter/03#An-Image-Blog