I have an HTML image tag with the source blank. The source will change based on input type file when the user uploads an image. So how do I get the image source? I can't hardcode the source as it will change based on what the user selects.So i want to retrieve the image src based on the file user has selected. Here are the codes i used:
i want to get the image directory by retrieving image src so i can check if there's an XML file created in the folder which has the same name as the image. thank you