+ 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">
8 Respostas
+ 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.
+ 2
use the img-tag to display images:
<img src="image.png"/>
+ 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.
+ 1
Can you show the code snippet?
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🙂
0
I used a different text editor
My image uploaded but did not show on the screen yunno like a profile picture.
0
Ok
<input type="file" size="30px" name="image">
0
Thanks
Really appreciate☺