when populate uploaded files then in again these files send for uploading #1098

Closed
opened 2019-06-15 06:50:59 +00:00 by chetanupreti · 0 comments
chetanupreti commented 2019-06-15 06:50:59 +00:00 (Migrated from github.com)

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

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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#1098