One Solution is when setting the upload error to the viewdata in the actionResult set fileUploadControl id also append with this string. for example
YourFile is more 1 mb:FileUpload id.
var test = '@ViewData["UploadError"].ToString()';
Hope this helps