I have file upload html code as:
<input type="text" id="txtSelectedFile" value="Select a file" class="sloInputBox" />
<input type="file" id="fUploadArtifact" style="background-color: #249FDA; color: white; height: 22px; width: 45px;border-radius: 4px;" />
And Jquery to get its path as:
$(function()
{
$('#fUploadArtifact').on('change',function ()
{
$('#txtSelectedFile').val($(this).val());
});
});
But each time although i take any file from any of the drive it gives me wrong path as:
C:\fakepath\Readme.txt
I have selected file from E:\Observations\Readme.txt
But it given me C:\fakepath\Readme.txt
What can be the mistake?
Please help me.