I need to get the full upload path in a file upload field. I attached a change lister to the upload field, when a file is selected I alert the file path and I get just the file name. Not the full file path as it appears in the form field. For example instead of this:
C:\Users\Toshiba\Desktop\me.jpg
I get
me.jpg
the code:
$('input[type="file"]').change(function() {
var fileLocation = $(this).val();
alert(fileLocation);
});
How to get the full file path?