Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Anti-Virus upon upload?

Last post 11-21-2008, 10:31 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  11-20-2008, 10:33 PM 46043

    Anti-Virus upon upload?

    Hi guys,
    I need to scan the files upon upload. Remove the files and notify the users if infected. I know it's beyond the scope of the ajax-uploader, just wonder if someone can give some good directions how to do it.
    Any helps will be appreciated!

  •  11-21-2008, 10:31 AM 46142 in reply to 46043

    Re: Anti-Virus upon upload?

    You can use the OnFileValidating event to write the custom validation code :
    <CuteWebUI:UploadAttachments runat="server" ID="Uploader1" OnFileValidating="Uploader1_FileValidating" />
     protected void Uploader1_FileValidating(object sender, UploaderEventArgs args)
                throw(new Exception("You file is not valid!"));
    this exception message would pass to client side , and the uploader would alert it to the users.
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.