0

A problem in loading images in phone

Hello I have a problem with my responsive website I do everything a folder and put every fonts and images in it and It shows everything correctly in PC But after send the folder into my phone and open it with my phone's browser the website doesn't load images and photos What's the problem I think after loading in server everything will be OK or is it true?

25th Jul 2021, 7:01 AM
Fram
Fram - avatar
2 odpowiedzi
+ 4
Your browser can access the images only in your Local computer where you have store your images, any other browser which is outside your Local computer won't be able to access them, unless the following - You will need to either 1) upload your resources into cloud storage like Google drive, Dropbox etc. and use the links or 2) buy a domain. (there are some free domain as well, please google it yourself)
25th Jul 2021, 7:04 AM
minirkk
minirkk - avatar
+ 1
FRam Simple thing is Mobile device is different and PC is different so file path may also be different and there is no direct link of Mobile and PC. So your given path in code may not be exist in Mobile. As your PC is at local environment so you can't access path of PC anywhere. You can only access anything anywhere through a medium and that medium maybe online like Cloud Storage or Google Drive or DropBox. Here you go to know how to upload and get a link to access files. https://code.sololearn.com/WW6t4B73kJVz/?ref=app
25th Jul 2021, 8:46 AM
A͢J
A͢J - avatar