I am not able to get proper file path,
i want to add file path into my database,
i did this with c#, but now i am using angularjs,
here is my html page
<a href="#" ID="btn">ssss</a>
<input type="file"/>
here is my jquery page
$(function () {
$('#btn').click(function () {
alert($('input[type=file]').val());
return false;
});
});
and i tried to do this with angular and javascript, but not succeeded in any of them,
i google about this an come to know it is not possible in client side, but i uploaded the filepath using directive in angularjs, but i am not able to get the code,
what i need to do, i want to upload the filepath into database