A problem in loading images in phone | Sololearn: Learn to code for FREE!

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?

7/25/2021 7:01:41 AM

Fram

2 Answers

New Answer

+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)

+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