Suppose if I set the file size 1 MB in script and when I am trying to upload the file greater than 1 MB,it is throwing error
"Failed to execute CGI "/cgi-bin/Maintenance_Framework.cgi". Contact your administrator."
In my view,it should display that "File is too big for upload".
Your code posted has a limit of 1MB. If you want a 5MB limit set it to what I showed you, if you want to upload something bigger, change the multiplier. Also ensure your web server isn't configured to limit file uploads.