After submitting image upload form, i want to get the real path of the choosen file like C:\Users\Public\Pictures\Sample Pictures\koala.jpg no matter from which drive it was selected it should return correct path (like above) i tried both with php and jquery but can't get the expected result. this is my code
$('#getrealpath').change(function (){
$('#realpath').val($(this).val());
});
it returns C:\fakepath\koala.jpg
and php
realpath($_FILES['image']['name'])
you can help me with any php/jquery code. thanks.