Cannot Run Microsoft SharePoint Foundation on this Page

When one of my business users tried to upload multiple documents in a document library, he faced an issue"Cannot run Microsoft SharePoint Foundation on this page". In this blog, I will give you the list of steps to get rid of this error in SharePoint Environment.
 
1. Take a copy of upload.aspx in layouts folder. 
 
2. Look out for the following tag 
 
3. <input TYPE="hidden" NAME="_charset_" VALUE="utf-8">
 
Update the following string as follows
 
<input TYPE="hidden" NAME="Cmd" VALUE="Save">
 
4.Save your file.
 
5.Reset IIS