I want the user to be able to see the image they have selected. What I can think of is to collect the name of the file and then put it in the attribute src
of an image, all with Javascript but I understand that this file name cannot be captured for security reasons. So how can I do it?
Although the question is a bit poorly formulated, I leave you the answer for your questioning. It is enough to add a tag
img
that we will change with the content of the image once loaded, for this we will use JQuery , but it could also be done with Pure JS .