AJAX Uploader does not read the entire uploaded file into memory. It streams the data into a temporary file while the data is received. You can use .CopyTo or .MoveTo method to copy the temporary file to a permanent location.

<%@Page Language="c#"%> 
<%@Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI"%>                
   <title>Simple Upload</title>
   <script runat="server">
        void InsertMsg(string msg)   
            ListBoxEvents.Items.Insert(0, msg);
            ListBoxEvents.SelectedIndex = 0;
        void Uploader_FileUploaded(object sender, UploaderEventArgs args)
            InsertMsg("File uploaded! " + args.FileName + ", " + args.FileSize + " bytes.");
            //Copies the uploaded file to a new location.
   <form id="Form1" method="post" runat="server">
           <CuteWebUI:Uploader runat="server" ID="Uploader1"
                Server Trace:
               <asp:ListBox runat="server" ID="ListBoxEvents"/>

Send feedback about this topic to CuteSoft. © 2003 - 2017 CuteSoft Components Inc. All rights reserved.