uploader: onAfterFileRemove?

I don’t see an event for the uploader if the user removes a file. Is that by design?

Hello,

Uploader doesn’t have UI for files removing, so it doesn’t have a special events.

Uploader has property files that referred to DataCollection. You can try to set onAfterDelete event for this object:

uploader.files is a DataCollection object, you can set its event handlers:

uploader.files.attachEvent("onBeforeDelete", function(id){
   // your code
});

Is there an event that fires when you click the X to remove a file from the UI? This is the event I am looking for.

I guess I am confusing the Uploader with the List component that links to it in the examples. What event fires when you click the X on the list item?

You can set onBeforeDelete or onAfterDelete of “files” DataCollection.

Please see the example in the previous reply.

Ok that works. Although it is not intuitive. The List component should respond to this event, not the Uploader component.