Hi Davidalams,
Thanks for your patience.
We checked your query of “Changing the file name in uploader component”. Before uploading the file to the component in the selected event, we can rename the file. The li element will be updated with the new file name, which can also be received on the server side. Please refer to the code below.
<ejs-uploader id="uploadFiles" asyncSettings="@asyncSettings" selected="onFileSelected"></ejs-uploader>
<script>
function onFileSelected(args) {
for (i = 0; i < args.filesData.length; i++) {
args.filesData[i].name = args.filesData[i].name + "-modified";
}
args.isModified = true;
}
</script> |
Screenshots:
Please find the sample below.
Kindly get back to us for further assistance.
Regards,
Sevvandhi N