The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Javascript to get path of image

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #243574


    On my script I am able to get the value of image that I select and then add it to my hidden field.

    How ever I need to be able to get the full path or at least the last 3 segments of the full image path and then add it to hidden value

    How can I achieve this?

    Thank you for your time.


    Chrome doesn’t allow you to get access to the path. For example the image path I get is: C:\fakepath\celebration.png

    This is done for security purposes. You will need to find another way of doing what you’re trying to do.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.