+ 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

12th Apr 2020, 5:21 AM
Mark Etale
Mark Etale - avatar
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
12th Apr 2020, 5:59 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 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
8th May 2020, 2:43 PM
Reca Resu
Reca Resu - avatar
+ 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?
12th Apr 2020, 7:55 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 2
Wish u good luck
8th May 2020, 2:47 PM
Reca Resu
Reca Resu - avatar
+ 1
got it lemmi try
8th May 2020, 2:45 PM
Mark Etale
Mark Etale - avatar
0
thanks
12th Apr 2020, 6:10 AM
Mark Etale
Mark Etale - avatar
0
isn't working
12th Apr 2020, 7:17 AM
Mark Etale
Mark Etale - avatar
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");
12th Apr 2020, 7:39 AM
Mark Etale
Mark Etale - avatar
0
Can you show me the code in which you are using the image? https://code.sololearn.com/WnmA4zV8FmMB/?ref=app
12th Apr 2020, 8:02 AM
Mark Etale
Mark Etale - avatar
0
You have to upload it to a hosting service and use the link
13th Apr 2020, 9:43 PM
Hallel Oreoluwa Ojowuro
Hallel Oreoluwa Ojowuro - avatar