Session variable cleared after Upload

  •  07-11-2009, 6:19 PM

    Session variable cleared after Upload

    I have an application that handles files. The files require some extra information for further processing. I'm using this control for file uploading:
    1. <CuteWebUI:UploadAttachments ID="Uploader1" runat="server"    
    2.     MaxFilesLimit="100" InsertButtonID="btnBrowse" ValidateOption-MaxSizeKB="10240"    
    3.         Visible="True" onattachmentadded="Uploader1_AttachmentAdded"    
    4.     MultipleFilesUpload="False" OnFileValidating="Uploader1_FileValidating"  
    5.     TempDirectory="/TempFiles">   
    6. </CuteWebUI:UploadAttachments>  
     
    On the OnAttachmentAdded event I create a new custom object (that contains the file in bytes and the extra information). This new object is added to a a session variable of type List<MyCustomType>. This list most be kept for the later processing.
     
    The problem is that after uploading a few files I get the error "Thread was being aborted", and the session variable List<MyCustomType> is cleared (the files in the Uploader are kept).
    Can you please help me?
     
View Complete Thread