How to get browser path in upload control in mvc?

2 posts, 0 answers
  1. Yogesh
    Yogesh avatar
    2 posts
    Member since:
    Dec 2014

    Posted 12 Jan 2015 Link to this post

    Hello admin.  I have a problem. When i used the Kendo upload control and i want to get full path of the image in client side then how can i get path of image in kendo upload. I know its security issue but i want to get full path of image. so please suggest me how to do that?
  2. Dimo
    Dimo avatar
    8485 posts

    Posted 14 Jan 2015 Link to this post

    Hello Yogesh,

    You can use the Upload widget's select event and this code:

    function onSelect(e) {
       var fileNameAndPath = e.sender.wrapper.find("input").first().val();

    Be aware that this works only in Internet Explorer and relies on a browser security setting, which you have no control over.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top