Forums

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
    Posts
  • #243574
    wolfgang1983
    Participant

    Hi,

    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?

    http://codepen.io/riwakawebsitedesigns/pen/oLodAX

    Thank you for your time.

    #244518
    jamygolden
    Member

    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.