-->
Page 1 of 1

my server is not displaying images

PostPosted: Sun Mar 12, 2017 2:41 am
by rohansagar4
so i wrote a small server in lua. Then i made a small page in html file which is linked to the server (lua code)
my website has an image which i uploaded onto the file system of nodemcu using the upload option in esplorer.
My webpage is being displayed but image does not show pls help me..

i linked the in=mage in html file as you would in usual html

<p><img src="name_of_the_image.jpeg" width= "1000" height="400" > </p>

Re: my server is not displaying images

PostPosted: Sun Mar 12, 2017 1:41 pm
by jeffas
Is your image in the right place in the file system? If you give just the image filename, your browser will interpret it as relative to the path of the page; e.g. if the HTML page URL was http://your.server/some/place/page.html then the image would be expected at this URL http://your.server/some/place/name_of_the_image.jpeg
If the image file is somewhere else, try using a full URL as the src value, or at least a full path.