I have attached file in page which gets added in File doctype.
I am clicking on Save button to save file URL in “Test” child doctype. Without clicking on save button if I try to close browser then I want to show confirmation from browser & when leave button is clicked then file should deleted from File doctype. So how can I achieve this ?