when populate uploaded files then in again these files send for uploading #1098
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
we have requirment like populate uploaded files in form.
we do it using
let blob = new Blob(['']);
let populateFile = new File([blob], value[i].file_name, {});
let fileData = new FileItem(this.uploader, populateFile, {});
fileData.file.size = Number(value[i].file_size);
fileData.file.type = "image";
fileData.progress = 100;
fileData.isUploaded = true;
fileData.isSuccess = true;
console.log('file', fileData);
this.uploader.progress = 100;
this.uploader.onAfterAddingFile(fileData);
this.uploader.queue.push(fileData);
and again when we upload another files then these uploaded files again go for uploading.
how can we manage this. and we also want then files are keeping in uploader queue