FileValidating Method

  •  10-23-2012, 1:41 AM

    FileValidating Method

     Hi,

     

    i want to validate each file on upload process.

     

    If i want to stop certain file upload during multiple file upload process, How do i do?

     

    For example,

    protected  void Uploader_FileValidating(object sender, CuteWebUI.UploaderEventArgs args)

    {

          string strFileName = args.FileName;

          if (Path.GetFileName(strFileName).Equals("aaa.txt"))

                       {

                              //I want to say here no upload for this file 

                         }

    }

     

    Lets simple, if 2 files are failed in the validation out of 10 files are in upload process, how do i stop these 2 files and show the

    status with error.

View Complete Thread