How to call a server side script when a file is get uploaded

Hi Everyone,

I have a server side script and which is being called on a button pressed event, however it will be great if I can call that script when a file is get uploaded to a doctype.

For e.g., when a file is get attached to let say item doctype (with any item in item master) the script should get called.

Is there any way to do this?

Regards
Ruchin Sharma

@ruchin78, attach a hook in File DocType

1 Like

@max_morais_dmm

That is file, but on which even I should trigger it?

Regards
Ruchin Sharma

@ruchin78 on_save?