This is a migrated thread and some comments may be shown as answers.

How to get browser path in upload control in mvc?

1 Answer 117 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yogesh
Top achievements
Rank 1
Yogesh asked on 12 Jan 2015, 06:19 AM
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?
thanks

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 14 Jan 2015, 08:04 AM
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.

Regards,
Dimo
Telerik

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.

Tags
Grid
Asked by
Yogesh
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or