I have one issue to resolve my problem. My problem is to get the full path of local image. I get my path as: "/fipcurren/mytestfolder/imgs/school.jpeg" and my program showed "C:\fakepath\school.jpg".
My code to get path are:
In HTML file:
<input id="imagePath" class="file" type="file" multiple data-min-file-count="1" accept="image/*">
In JavaScript file:
data.imagePath = document.getElementById("imagePath").value;
I try this above, but not resolve the problem:
data.imagePath = document.getElementById("imagePath").files[0].name;
Someone help me? Thanks