+ 1

How do i make this code redirect a user to his/her device storage and upload a file mainly image to the website

<h2>Please upload your picture</h2> <input type="file" size="30px">

4th Nov 2022, 1:31 PM
Fortune nkoro
8 Answers
+ 4
You don't need to do anything extra, just use the input tag with file type. Note that it will not work on sololearn playground anyway.
4th Nov 2022, 1:37 PM
Lisa
Lisa - avatar
+ 2
use the img-tag to display images: <img src="image.png"/>
7th Nov 2022, 1:58 PM
Lisa
Lisa - avatar
+ 1
sololearn playground does not have access to your local storage. You need to link an image that is online. Image links usually end with "png" or "jpg" or something.
7th Nov 2022, 1:43 PM
Lisa
Lisa - avatar
+ 1
Can you show the code snippet?
7th Nov 2022, 1:50 PM
Lisa
Lisa - avatar
0
Thanks so much, it actually worked in a different text editor. But the image did not display. Just like when you upload a profile pic on Facebook Please is there anyway to to thatšŸ™‚
7th Nov 2022, 1:12 PM
Fortune nkoro
0
I used a different text editor My image uploaded but did not show on the screen yunno like a profile picture.
7th Nov 2022, 1:50 PM
Fortune nkoro
0
Ok <input type="file" size="30px" name="image">
7th Nov 2022, 1:57 PM
Fortune nkoro
0
Thanks Really appreciateā˜ŗ
7th Nov 2022, 7:06 PM
Fortune nkoro