Send image between pages javascript [closed]

0

I have an image that was uploaded by the user and I need to upload it to another page to display on the screen before sending it to the database.

Any suggestions how to do this?

    
asked by anonymous 28.09.2018 / 18:21

1 answer

1

Tip, you can save this image to one of the WebStores, so you have quick and easy access.

You can use localStorage: ( link )

to save the image stream:

localStorage.setItem('NAME','IMG_STREAM');

to get the stream:

localStorage.getItem('NAME');

You can track the values of the storages in the 'Application' tab in the browser development tool:

    
28.09.2018 / 20:49