Uploading opened file error.

Last post 08-19-2009, 8:13 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  08-19-2009, 2:23 PM 54813

    Uploading opened file error.

    When trying to upload a file which is currently being edit throws an error. Although the behavior is not completely unexpected it would be nice to have a mechanism to modify the error message so it is more friendly.
     
     
     
    Thanks
     
    Allan Lin
  •  08-19-2009, 8:13 PM 54824 in reply to 54813

    Re: Uploading opened file error.

    Allan,
     
    Please check this way :
     
    <script>
       function CuteWebUI_AjaxUploader_OnError(msg)
        {
            if(msg.indexOf("IO_SharingViolation_File")!=-1)
            {
                alert("The file is locked");
                return false;
            }
        }
     </script>
    Regards,
    Terry
     
View as RSS news feed in XML