You can add a content editor web part to the upload page and then with the help of JavaScript you can manage the files to be uploaded or not.
To add content editor web part, first disable opening the upload.aspx page into SharePoint modal pop up from the library settings.
Regards,
Rupesh Singh
-------------------------------------------------------------
Please don't forget to mark it as answered, if your problem resolved or helpful.