display images from local drive on a web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • activeashish
    New Member
    • Sep 2006
    • 14

    display images from local drive on a web page

    I want display images from local machine for which i am already having the location.Or using file tag.Is it possible to preview the image bbefore uploading them.when i tgry to give using <img src="c:/abc.jpeg"> it doesnt work as html file is on server and try to find this file there on server which is not there.Its on local machine.

    If any one having idea regarding this please advice.
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Originally posted by activeashish
    I want display images from local machine for which i am already having the location.Or using file tag.Is it possible to preview the image bbefore uploading them.when i tgry to give using <img src="c:/abc.jpeg"> it doesnt work as html file is on server and try to find this file there on server which is not there.Its on local machine.

    If any one having idea regarding this please advice.
    Host the image, or upload the image to the server.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Originally posted by activeashish
      Is it possible to preview the image bbefore uploading them.
      JavaScript can't access the local file system, so the answer is no.

      If you want to access for yourself by changing your own settings, then this may be possible, but not for all users via JavaScript.

      The only way to show a preview is to do a temporary upload and show the image from the server.

      Comment

      Working...