+ 1
does anyone know how to write the path to a file in html
i want to locate a file in my phone to be used in my web application but have tried several ways and it fails. how can i do it. Thanks in advance
11 Respuestas
+ 4
No, not from you local machine.
You have to upload it to any hosting service like Dropbox and then get the link and use it.
https://code.sololearn.com/WW6t4B73kJVz/?ref=app
+ 3
Mark Etale I have a better idea for u it helped me also .
First upload ur file like image to Google drive on ur phone it takes 2-3 seconds to upload
Then use the following in html
<img src = "https://drive.google.com/uc?id=" img. png"&export=download">
img.png is only the id of the file till first forward slash
Replace img.png with ur file id
+ 2
Mark Etale
I tried that image with img tag and also with background-image property and it is working good with me.
Can you show me the code in which you are using the image?
+ 2
Wish u good luck
+ 1
got it lemmi try
0
thanks
0
isn't working
0
what am i doing wrong here,,, the image isn't displaying.
have tried both ways in vain.
background-image: url("https://dl.dropbox.com/s/vxfc2cjdbk0z906/IMG_20200326_185912_9.jpg?dl=0");
0
Can you show me the code in which you are using the image?
https://code.sololearn.com/WnmA4zV8FmMB/?ref=app
0
You have to upload it to a hosting service and use the link