Is it possible using dropzone upload file but do not ajax to url. But i can received the file object in Vue? I cannot access the dataURL
dropzoneOptions: {
url: "/api/uploadImg",
thumbnailWidth: 150,
addRemoveLinks: true,
autoDiscover: false,
// autoProcessQueue: false,
maxFiles: 1,
headers: { "My-Awesome-Header": "header value" },
init: function () {
this.on("addedfile", function (file) {
console.log(file.dataURL);
this.pwraImg = file.dataURL;
// var reader = new FileReader();
// reader.readAsDataURL(file);
// reader.onload = () => {
// this.pwraImg = reader.result;
// };
});
},
}