Cannot read property '_prepareToUploading' of undefined
ERROR TypeError: Cannot read property '_prepareToUploading' of undefined
at FileUploader.uploadItem (eval at
Did you figure this out?
No...
@geranim0 a bit late but did you managed to fix this issue? I have similar to this one.
me too...
ERROR Error: Uncaught (in promise): TypeError: Cannot read property '_prepareToUploading' of undefined
TypeError: Cannot read property '_prepareToUploading' of undefined
at FileUploader.uploadItem (ng2-file-upload.js:723)
in combination with ngx-image-cropper, i want to use this method:
async reactToFinishedCropping() {
if (this.croppingFinished) {
//base64 to blob
let blob = await fetch(this.croppedImage).then(r => r.blob());
console.log(blob);
//blob to file
let file = new File([blob], "croppedImage");
console.log(file);
//file to fileItem
let fileItem = new FileItem(this.uploader, file, {});
console.log(fileItem);
//start upload
this.uploader.uploadItem(fileItem);
}
apart from that i use ng2-file-upload with the same setting for uploader (except autoUpload: true) and it works. before uploadItem() i used addToQueue() & uploadAll(), but no reaction there at all.
I never figured it out and quit the company because I could not stand doing front end anymore 😂😂
On Wed, 12 Aug 2020 at 04:39, connectedSoul [email protected] wrote:
me too...
in combination with ngx-image-cropper, i want to use this method:
async reactToFinishedCropping() { if (this.croppingFinished) { //base64 to blob let blob = await fetch(this.croppedImage).then(r => r.blob()); console.log(blob); //blob to file let file = new File([blob], "croppedImage"); console.log(file); //file to fileItem let fileItem = new FileItem(this.uploader, file, {}); console.log(fileItem); //start upload this.uploader.uploadItem(fileItem); }
apart from that i use ng2-file-upload with the same setting for uploader (except autoUpload: true) and it works. before uploadItem() i used addToQueue() & uploadAll(), but no reaction there at all.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/valor-software/ng2-file-upload/issues/1042#issuecomment-672736469, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADU32TDAFVXZQXLWGNNFX33SAJIKRANCNFSM4FOEJLLA .
does anybody still maintain this package?
this thread started 2018 and yet no solution