Edit EditForm.aspx for all document Libraries in a site

Nov 20 2015 2:48 PM

 I have more than 50k document libraries in a site collection. 

When we upload the document and hit cancel on EditForm.aspx (Mode=Upload), it still uploads the document in checked out status. I want to overright the cancel button (not from ribbon) on EditForm.aspx to delete the document if certain fields are not filled up. How can I do it for all libraries?
 
 

Answers (2)