L
L
lexstile2021-06-30 11:15:09
JavaScript
lexstile, 2021-06-30 11:15:09

What other ways are there to see a preview of the uploaded image without sending it to the back?

I'm trying to upload files to the server with a preview.
But I want to choose the optimal solution for the preview, so that it is supported to the maximum in browsers.

So far I have found two: FileReader and URL.createObjectURL

It seemed that it was better to use FileReader, since the second solution is an experimental technology (mdn source).

Are there other ways and which one would be better?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question