Large File Upload with Confirmation E-mail Support

Last post 12-26-2010, 9:15 AM by Chloemiley25. 2 replies.
Sort Posts: Previous Next
  •  12-24-2010, 9:47 AM 65522

    Large File Upload with Confirmation E-mail Support

    I purchsed the Ajax Uploader yesterday to replace my other ASP uploading solution and I have a question about adding a confirmation email when the file has uploaded.
     
    I have searched the forum but was unable to find a solution.
     
    Can the e-mail capability be added to the ..\Framework 2.0-VB\Large-File-Upload.aspx file?
     
    If one of the other samples would work better I am flexible.
     
    Thanks and happy holidays
     
    Darin
    IIS7, Server 2008 x64

    Darin Weatherbee
  •  12-24-2010, 9:58 AM 65523 in reply to 65522

    Re: Large File Upload with Confirmation E-mail Support

    Dear Darin,
     
    Please refer to the following code:
    <%@ Page Language="C#" %>
    <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader, Version=3.0.0.0, Culture=neutral, PublicKeyToken=bc00d4b0e43ec38d" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <script runat="server">
        protected void Uploader1_UploadCompleted(object sender, UploaderEventArgs[] args)  
        {   
            //please write code of email confirmation here      
            string msg = "You have uploaded " + args.Length + " files";  
            foreach (UploaderEventArgs arg in args)  
            {  
                msg += "\r\n" + arg.FileName + "," + arg.FileSize;  
            }  
     
            Label1.Text = msg;     }  
    </script>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>UploadCompleted sample</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <CuteWebUI:Uploader runat="server" ID="Uploader1" MultipleFilesUpload="True" OnUploadCompleted="Uploader1_UploadCompleted">
            </CuteWebUI:Uploader>
            <pre>
    <asp:Label runat="server" ID="Label1" />           </pre>
        </div>
        </form>
    </body>
    </html>

    Thank you for asking
  •  12-26-2010, 9:15 AM 65526 in reply to 65523

    Re: Large File Upload with Confirmation E-mail Support

    I have the same problem. . .  thanks for the post :)
     
     
    Energy Medicine
    Chloe Miley
View as RSS news feed in XML