Two copies of a file gets uploaded

  •  08-26-2009, 2:08 PM

    Two copies of a file gets uploaded

    Hi,
    I have a file upload event handler,
     void Uploader_FileUploaded(object sender, UploaderEventArgs args)
        {
            if (GetVisibleItemCount() >= 3)
                return;
            using (System.IO.Stream stream = args.OpenStream())
            {
                Attachments1.Upload(args.FileSize, args.FileName, stream);
            }
        }
    Web.Config has the following settings:
    <add key="CuteWebUI.AjaxUploader.TempDirectory" value="D:\UploadedFiles\"/>
     
    When I upload a file, two  copies of resx files are generated (with different names). On deleting through Attachement.DeleteAllAttachments(), only one copy gets deleted and other still remains in the directory. How can I get rid of this issue?
View Complete Thread