I want to get full path which user selected in file upload control. how can we do it.
3 Answers
browser restrictions does not allow this, however there are some hints using javascript before submiting to achieve this
For instance
<asp:button onClientClick="document.getElementById('hiddenField1').value = document.getElementById('fileUpload1').value" ...
Then the path can be retrieved on server side via hiddenField1.Value