+ 2

How to take the image from your computer to put it in your website ?

hi ! How to take the image from your computer to put it in your website , what is the path ? instead of .... body { background-image: url("http://www.website/image.jpg"); It will be ... I don't find the way to put an image directly from my computer . I have to dowload it the image from a website , then copy the image adress and put it in the background-image url . thanks for your help !

31st May 2018, 7:10 AM
S. Kaouche
S. Kaouche - avatar
2 Answers
+ 8
S. Kaouche To do this you have to use Storage API. Save your Web file into user computer and retrieve it to your web. But all of this can't do with Sololearn Code Playground. For easier, you may upload your image to Dropbox and get URL to your web. Don't forget to change "dl=0" at the end of url to "dl=1&raw=1".
31st May 2018, 8:17 AM
Warith Vatanaplachaigoon
Warith Vatanaplachaigoon - avatar
+ 2
Warith Varanaplachaigoon, where to learn Web Storage API, and how to do it? I wanna use an image in my html, which is in my desktop, but it shows only in my pc and not in others'. why? how to overcome this?
31st May 2018, 8:42 AM
Siddharth
Siddharth - avatar