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 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.