Skip to content
Advertisement

upload image to my server directory and use the url

I am stuck and really don’t have any idea how can i do this. I want to upload an image to my server root directory. And then i want to use the url of that image. Like

   <img src="http://example.com/image/name.jpg">.

I want to use this url in a html page. Which will have no link with my website. anyone clicks that html file will see the picture along with few details.

Advertisement

Answer

You have to create a folder into your server like “images/” and you upload there you image “image.jpg”, you only have to put this link: “http://yourwebpage.com/images/image.jpg” into a like: <img src="http://yourwebpage.com/images/image.jpg">. I hope this is what you want to know, if not, tell me in the comments.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement