Which event is get fired when a file is attached to a doctype

Hi Everyone,

Does, anyone have any idea that which event is get fired when a file is attached to a doctype?
Also, is there any way to use that event in Custom Script (Javascript Code) if yes, then how?

Regards
Ruchin Sharma