FILEUPLOAD: How can I detect file removal on multiple/single file upload in real-time?

I'm creating a form that has a fileupload. I need to check if there are files uploaded, if has uploaded file the other fields will be disabled automatically.

Steps
Step #1. Upload one or more files
-automatically detect if one more files uploaded. Disabling other fields

Step #2. Removed all files
  • not detected if all files are removed or not. like triggering a notification. Not re-enabling the disabled fields.
Step #3. Upload some files
-it will trigger the removed notification.

Is there a way to detect if all uploaded files are discarded or not, So that I can disabled or enable fields?
Was this page helpful?