Re: Displaying error message when Mime Type is failed

  •  05-07-2013, 12:07 PM

    Re: Displaying error message when Mime Type is failed

    Hi MayurNarsale,

     

    You can catch the error by the API below and shows your custom error message. Message "The file is corrupt or has an incorrect extension. " is the default error message for mime type error.

     

    1. <script type="text/javascript">  
    2.     function CuteWebUI_AjaxUploader_OnError(msg) {  
    3.         if (msg.indexOf("The file is corrupt or has an incorrect extension") != -1) {  
    4.             //show the message you want  
    5.             alert("custom error message!");  
    6.             return false;  
    7.         }  
    8.     }  
    9. </script>  
     

    Regards,

     

    Ken 

View Complete Thread