Disable clear button when file uploaded

I'm using the file upload async with a single file, auto upload is off.

I'm using the file uploader in a multi-step procedure. When a file is uploaded, it's in a pending state, and it can be removed by the user with the X. However, if the user clicks the clear button, it's cleared from the list, without processing removal, and the file is orphaned. Is there a way to disable the clear button once a file is uploaded?

2 Replies

DG Derek Gabriel October 12, 2020 05:06 AM UTC

Guess I figured it out, lol... now I feel dumb for asking ;)

In my onUploadSuccess function I added:
$('.e-file-clear-btn').prop('disabled', true);


SN Sevvandhi Nagulan Syncfusion Team October 13, 2020 12:21 PM UTC

Hi Derek, 



We are glad to hear that you have found the solution. Please get back to us if have any other queries. 


Regards, 
Sevvandhi N 


Loader.
Up arrow icon