Hi, I have a file button in the way the user can add a picture to the database. I was wondering if it’s possible that the user can preview the picture that he selected (by displaying the picture under the button for example), to be sure that’s is the good photo that he wants before clicking on the button to update the database.
I searched a long time but I don’t find any way to get the SRC from the input button. I just success to get the name and the size but it’s not the SRC. It would be easy that way because after I just have to give the SRC to the picture below in the way to show it
Thanks for your help !
I would like to see this too.
The only way I’ve found how to preview an image is to add a $w(‘image1’) overlapping the uploadButton, then do a .startUpload() and then populate the Image with the uploadButton’s src… Then uploadButton.hide(), and Image.show()
The only problem with this is you end up with many duplicate images in your Visitor Upload section