CuteWebUI_AjaxUploader_OnSelect error.

  •  09-25-2009, 9:54 AM

    CuteWebUI_AjaxUploader_OnSelect error.

    Hi all,
     
    I used the CuteWebUI_AjaxUploader_OnSelect event in order to validate the filename:
     
        function CuteWebUI_AjaxUploader_OnSelect(files)
        {
            var name = files[0].FileName;
            var size = files[0].FileSize // (or -1)

            DoValidationCallBack(name);

            debugger;
            
            if (callbackResult.indexOf("ok") != 0) {
                
                return false;
            }
        }

    Validation is performed on server side using callback. So if it fails I return false. At this moment the "'arr' is undefined" message is popped up by the browser. Debugger show, that it was thrown from CuteWebUI_Uploader_Resource.axd?type=script&_ver=633886310254119016.
     
    What should I do to avoid this message?

    Regards,
    Michael Raizman
View Complete Thread