Hello Web2py users : I had so much trouble with previewing an image before upload or submit, I have tested so many javascripts out there and various solutions that have worked mostly with PHP projects, I have tried so many scripts.... taken from all over the place, none of them actually did the job the way i wanted it done in web2py .. some were either too complex ... or to heavy or not adapted to python out of the box !!
I have to share this with folks having the same issue ! I have found a nice and simple way to preview an image before actually uploading it in the database ( before submitting a form ... or updating a form ) the source that made this possible can be found here : http://html5demos.com/file-api-simple pretty straight forward ! check it out ! PS. take note that the "pic holder" id tag would be where you want that image to be shown before submitting the form and in the DOM, you will need to know exactly which input field relates to the image file you want to upload and it worked very nicely ! thank you Don --

