Any answer? I have the very same need. Thanks Ari
Em segunda-feira, 2 de dezembro de 2013 14h02min30s UTC-2, Michael Hall escreveu: > > If I have the following model: > > db.define_table('user_images', > Field('my_image', 'upload', > label=T('My Image')), > ) > > and In my rendered html view I have a canvas, the canvas has produced an > image saved in the variable > document.getElementById('canvas').src = dataURL; > > Underneath the image is an upload button, I wish to POST the canvas image > to user_images.myimage when the button is pressed and then move to a new > view and controller which displays the uploaded image and has some more > editing options. > > What is the best way to achieve this? Is it possible to render a sqlform > that only has a button which when pressed uploads dataURL and redirects to > the next controller/view? > > > -- 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.