I am trying to build a form, with multiple image upload. In my JSON object i need to get Path of the images when input selections are made.
In bootstrap-vue you can get file.name image.png
that is the image name, but i need the full path like C:\YourFileSyste\image.png
How can i retrieve that or, append that if its impossible to retrieve.
I have been Following official documentation at https://bootstrap-vue.js.org/docs/components/form-file/#form-file-input
(Also on side note can i limit the max files uploaded using bootstrap-vue.)
Alternatively I have tried to create a custom handle event previosly but i cant seem to access the event with each file and save that in my json
handleFileChange(evt){
console.log(evt.target.files);
for(var i in evt.target.files)
{
this.infoModal.case.images.push({ //infoModal.case.images is the array where images are stored
id:0,
name:null,
url: evt.target.files[i].name
});
}
console.log(this.infoModal.case.images);
}