Hi I want file path from the user input. I read multiple questions online mine isn't about getting full path from file upload. I already know it is not possible, according to browser security settings I can only get filename and not the whole filepath. So I request the user to enter the full path , but problem is now when I read the path the '/' get substituted for ':'
Ex :
Input
/Users/hardisk/Downloads/clipcanvas_14348_offline.mp4
changes to
:Users:harddisk:Downloads:clipcanvas_14348_offline.mp4
Please help.
I am attaching the code here
<input type="file" id="file" name="file"/>
function upload_video()
{
filename=document.getElementById("file").value;
alert("uploading"+filename);
window.location.href="VideoUpload?file="+filename;
}
:Users:harddisk:Downloads:clipcanvas_14348_offline.mp4
, after inputting/Users/hardisk/Downloads/clipcanvas_14348_offline.mp4
? that's strange. – gengkev Nov 16 '13 at 2:47