C
C
caof192018-03-22 19:33:20
JavaScript
caof19, 2018-03-22 19:33:20

Is it possible to open a file without uploading it to the server?

Good day, I will explain the essence of the issue. The site has an img and input tag with type=file and, accordingly, submit, an image (jpg, png ... ) enters the input. That's actually the question, is it possible to somehow display this picture in img without uploading it to the server?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Tsvetkov, 2018-03-22
@caof19

I'm not quite sure if I understood you correctly, but it seems to me that this is what you are looking for

M
McBernar, 2018-03-22
@McBernar

You can store in localStorage.
The path to the file on the client's system that can be inserted into the page is not accessible from the browser.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question