[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread mdipierro
There a number of problems. comments below: On Apr 12, 5:54 am, Francisco Costa wrote: > Model > > db.define_table('space', >     Field('name'), >     Field('slug', 'string'), >     Field('description','text'), >     Field('photo','upload'), > > Controller > > def add_space(): >     form='ola'#cr

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
I found the solution reading the "image uploading" thread. On Apr 12, 12:47 pm, Francisco Costa wrote: > Hello lshbit, thank you for your answer, but i think my problem is a > bit different. > I'm using acustomformas you can see in add_space.html and I use a > "photo = request.vars.photo"  to in

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
Hello lshbit, thank you for your answer, but i think my problem is a bit different. I'm using a custom form as you can see in add_space.html and I use a "photo = request.vars.photo" to insert the data from the form in the database On Apr 12, 12:28 pm, Ishbir wrote: > There is an entry regarding

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Ishbir
There is an entry regarding this in the book- http://web2py.com/book/default/section/3/6 It's almost the same stuff.. On Apr 12, 3:54 pm, Francisco Costa wrote: > Model > > db.define_table('space', >     Field('name'), >     Field('slug', 'string'), >     Field('description','text'), >     Fiel

[web2py] Re: Display Image from FieldStorage

2010-04-12 Thread Francisco Costa
Model db.define_table('space', Field('name'), Field('slug', 'string'), Field('description','text'), Field('photo','upload'), Controller def add_space(): form='ola'#crud.create(db.space) return dict(form=form) def create(): name = request.vars.name slug = slugify

[web2py] Re: Display Image from FieldStorage

2010-04-11 Thread mdipierro
Please show us your code. On Apr 11, 1:23 pm, Francisco Costa wrote: > Hello, > I'm using a custom form that has an upload field in the model. > When i submit the form I use a request.vars.name and saves the file as > an FieldStorage.. > I don't know if the file is uploaded and how I can access i

[web2py] Re: Display Image from FieldStorage

2010-04-11 Thread Francisco Costa
still didn't found how to solve this problem.. :/ any help? On Apr 11, 7:23 pm, Francisco Costa wrote: > Hello, > I'm using a custom form that has an upload field in the model. > When i submit the form I use a request.vars.name and saves the file as > an FieldStorage.. > I don't know if the file