Hi Steffen,
Greetings from Syncfusion support.
We have checked your query. Please find the details below.
Query 1:
events like "actionComplete" and "change" include multiple file infos when user uploads files multiple times although the file list shows only 1 file (the last uploaded)... why? I also wonder why the user is still able to upload multiple times with multiple=false.
Response:
We have checked in actioncomplete and change events. We could not reproduce this with actioncomplete event. Also we suggest you to use selected event which triggers on every file is getting selected.
Query 2 & 3:
event "change" is not triggered for removed uploads (using trash icon after upload was complete)... why?event "actionComplete" is not triggered again when uploaded a file after a file has already been uploaded... why?
Response:
We could not reproduce this issue and change and actioncomplete triggers for removing the uploaded files in our end.
Query 4:
event "success" is triggered for aborted uploads... why?
Response:
We would like to know you that success event will be triggered for every operation is successfully completed. You can differentiate the operations with the help of operation obtained in the success event arguments.
Here we have attached the ensured sample in the below link
Sample Link : https://stackblitz.com/edit/react-z4zqdl?file=index.js
Query 5:
how can I disable the feature "delete" on uploaded files?
Response:
You can add “e-disable” class to the delete icon in the success event so that the icon remains in the disabled state. We have made sample for your convenience. Please find the sample in the below link.
Sample Link : https://stackblitz.com/edit/react-z4zqdl-yszcph?file=index.js
Regards,Jeyanth.
|
onSuccess(args) {
if (args.operation == "upload") {
document.getElementById("list").innerText = args.file.name;
}
console.log("success", args);
}
|
|
|