A script to add image from the computer

Hi everyone,

If anyone could help me with a sample code to insert image in between the recored script, i.e, when we click on upload, we should able to attach an image from the computer and hit save. I have tried many different ways but I could not do it.

Thanks in advance.