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.
- <script type="text/javascript">
- function CuteWebUI_AjaxUploader_OnError(msg) {
- if (msg.indexOf("The file is corrupt or has an incorrect extension") != -1) {
-
- alert("custom error message!");
- return false;
- }
- }
- </script>
Regards,
Ken