[web2py] Re: How to upload an image using SQLFORMfactory in a folder & link same image to field of an existing db

2016-01-01 Thread RAGHIB R
@Anthony, it did upload to the 'person' table as in upload folder I can read it as person.image.something but the later part didn't work. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/

[web2py] Re: How to upload an image using SQLFORMfactory in a folder & link same image to field of an existing db

2016-01-01 Thread RAGHIB R
This didn't work. Can you please edit the code above and then point out the mistake? -- 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 me

[web2py] Re: How to upload an image using SQLFORMfactory in a folder & link same image to field of an existing db

2016-01-01 Thread Anthony
Why use factory rather than SQLFORM with dbio=False? Anyway, the problem is that when a file is uploaded, its new name starts with the table and field name from the DAL model, and that table and field name are then used to locate the file on the filesystem. With SQLFORM.factory, a dummy DAL tab