Select multiple file don't work !!!

Last post 06-30-2009, 10:42 AM by bruognololuca. 17 replies.
Sort Posts: Previous Next
  •  06-29-2009, 4:32 AM 53578

    Select multiple file don't work !!!

    Hi,
     
    i used Framework 2.0-Csharp-MicrosoftAjax -> multiple-files-upload.aspx on my web-site, the upload work correctly but not the multiple selection. I have flash plugin installed  and the demo version to the url http://ajaxuploader.com/Demo/select-multiple-files-upload.aspx WORK CORRECTLY WITH THE SAME BROWSER!! Where is my error? I have downloaded the Ajax-Uploader.zip from http://ajaxuploader.com/default.htm is this the version 2.0?? i hope in your support before of purchase the component. Thank you
  •  06-29-2009, 6:14 AM 53579 in reply to 53578

    Re: Select multiple file don't work !!!

    Hi,
     
    Do you see the button be disabled for a few seconds ?
     
    Regards,
    Terry
     
  •  06-29-2009, 8:05 AM 53584 in reply to 53579

    Re: Select multiple file don't work !!!

    yes!!! Up my domain the button 'Upload multiple files now' after the click is disabled for about two second. In the demo version http://ajaxuploader.com/Demo/select-multiple-files-upload.aspx the button is always enabled also after the click. Thanks :)
  •  06-29-2009, 9:26 AM 53586 in reply to 53584

    Re: Select multiple file don't work !!!

    CAN YOU HELP ME :( ??
  •  06-29-2009, 10:49 AM 53588 in reply to 53586

    Re: Select multiple file don't work !!!

    bruognololuca,
     
    The latest version is 3.0. Are you using the latest version?
     
    If so, is your site online so we can try the demo?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-29-2009, 10:53 AM 53589 in reply to 53588

    Re: Select multiple file don't work !!!

    this is my site: http://www.angelidellanotte.net/multiple-files-upload.aspx
  •  06-29-2009, 10:57 AM 53590 in reply to 53589

    Re: Select multiple file don't work !!!

    i'm not sure that my version is 3.0. can you post the correct link for download?? Thanks
  •  06-29-2009, 11:00 AM 53591 in reply to 53590

    Re: Select multiple file don't work !!!

     
    Please use this trial license file. Your license file expired.
     
    Then open the above example and set

    MultipleFilesUpload="true".


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-29-2009, 11:10 AM 53592 in reply to 53591

    Re: Select multiple file don't work !!!

    Inside which tag i set MultipleFilesUpload="true" ??
  •  06-29-2009, 11:21 AM 53594 in reply to 53592

    Re: Select multiple file don't work !!!

    i have set the value here:    

    <CuteWebUI:UploadAttachments InsertText="provaaaa" runat="server" MultipleFilesUpload="true" ID="Attachments1"></CuteWebUI:UploadAttachments>
     
    It not work :( The output says: Server Error in '/' Application !!
  •  06-29-2009, 9:19 PM 53615 in reply to 53589

    Re: Select multiple file don't work !!!

    Hi,
     
    I just checked your side.
     
    It should render the MultipleFilesUpload='1' , but I haven't get it.
     
    Can you post the source code of the multiple-files-upload.aspx ??
     
    Regards,
    Terry
     
  •  06-29-2009, 9:20 PM 53616 in reply to 53594

    Re: Select multiple file don't work !!!

    What error did you get ?
  •  06-30-2009, 4:08 AM 53624 in reply to 53616

    Re: Select multiple file don't work !!!

    THIS IS THE CODE OF multiple-files-upload.aspx:  
     

    <%@ Page Language="C#" MasterPageFile="~/Demo.master" Title="Uploading multiple files like GMail" %>

    <script runat="server">  
      
           void InsertMsg(string msg)
            {         
                ListBoxEvents.Items.Insert(0, msg);
                ListBoxEvents.SelectedIndex = 0;
            }

            protected override void OnInit(EventArgs e)
            {
                base.OnInit(e);
                Attachments1.AttachmentAdded += new AttachmentItemEventHandler(Attachments1_AttachmentAdded);
                ButtonDeleteAll.Click += new EventHandler(ButtonDeleteAll_Click);
                ButtonTellme.Click += new EventHandler(ButtonTellme_Click);
            }
           
            void Attachments1_AttachmentAdded(object sender, AttachmentItemEventArgs args)
            {
                InsertMsg(args.Item.FileName + " has been uploaded.");
            }

            void ButtonDeleteAll_Click(object sender, EventArgs e)
            {
                InsertMsg("Attachments1.DeleteAllAttachments();");
                Attachments1.DeleteAllAttachments();
            }
            void ButtonTellme_Click(object sender, EventArgs e)
            {
                ListBoxEvents.Items.Clear();
                foreach (AttachmentItem item in Attachments1.Items)
                {
                    InsertMsg(item.FileName + ", " + item.FileSize + " bytes.");
                    //Copies the uploaded file to a new location.
                    //args.CopyTo("c:\\temp\\"+item.FileName);
                    //You can also open the uploaded file's data stream.
                    //System.IO.Stream data = item.OpenStream();
                }
            }
    </script>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">  
        <h2>Uploading multiple files like GMail</h2>
        <p> Google's GMail has a nice way of allowing you to upload multiple files. Rather than showing you 10 file upload boxes at once, the user attaches a file, you can click a button to add another attachment. </p>
        <br />     


        <CuteWebUI:UploadAttachments InsertText="Upload Multiple files Now" runat="server" ID="Attachments1" MultipleFilesUpload="true">
         <INSERTBUTTONSTYLE/>
        </CuteWebUI:UploadAttachments>

        <br /><br /> 
        <asp:Button ID="ButtonDeleteAll" runat="server" Text="Delete All" />&nbsp;&nbsp;
        <asp:Button ID="ButtonTellme" runat="server" Text="Show Uploaded File Information" />
        <br /><br />
        <div>
            Server Trace:
            <br />
         <asp:ListBox runat="server" ID="ListBoxEvents" Width="400"></asp:ListBox>
        </div>
    </asp:Content>

    THE ERROR IS: 
    Parser Error Message: Type 'CuteWebUI.UploadAttachments' does not have a public property named 'MultipleFilesUpload'.

     
  •  06-30-2009, 4:12 AM 53625 in reply to 53624

    Re: Select multiple file don't work !!!

    ALSO THIS SIMPLE CODE NOT WORK :
     
    <%@ Page language="c#"%>
    <%@ Register Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" TagPrefix="CuteWebUI" %>
    <html>
    <head>
    </head>
    <body>
        <form id="Form1" method="post" runat="server">
     <CuteWebUI:Uploader runat="server" MultipleFilesUpload="true" ID="Uploader1">
     </CuteWebUI:Uploader>
        </form>
    </body>
    </html>
     
    THE ERROR IS ALWAYS:
    Parser Error Message: Type 'CuteWebUI.Uploader' does not have a public property named 'MultipleFilesUpload'.
  •  06-30-2009, 4:14 AM 53626 in reply to 53625

    Re: Select multiple file don't work !!!

    this is my web.config:

    <?xml version="1.0"?>
    <configuration>
     <appSettings>
      <!-- You can set a low upload speed to test the progress bar. -->
      <!--
      <add key="CuteWebUI.AjaxUploader.UploadSpeedKB" value="20" />
      -->
      <!--add from luca-->
      <add key="CuteWebUI.AjaxUploader.TempDirectory" value="~/public/UploaderTemp"/>
      <add key="CuteWebUI.AjaxUploader.MultipleFilesUpload" value="true"/>
     </appSettings>
     <system.web>
     <!--<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>-->
     <customErrors mode="Off"/>
        <httpRuntime maxRequestLength="2000000"/>
        <pages>
       <controls>
        <add namespace="CuteWebUI" assembly="CuteWebUI.AjaxUploader" tagPrefix="CuteWebUI"/>
        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
       </controls>
       <namespaces>
        <add namespace="System.Collections.Generic"/>
        <add namespace="System.IO"/>
        <add namespace="System.Data"/>
        <add namespace="System.Data.SqlClient"/>
       </namespaces>
      </pages>
      <compilation debug="true">
       <assemblies>
        <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
       </assemblies>
      </compilation>
      <httpHandlers>
       <remove verb="*" path="*.asmx"/>
       <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
       <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
       <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
      </httpHandlers>
      <httpModules>
       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <!-- UploadModule is optional , for the property Uploader.ShowProgress -->
          <add name="CuteWebUI.UploadModule" type="CuteWebUI.UploadModule,CuteWebUI.AjaxUploader"/>
      </httpModules>
     </system.web>
    </configuration>

    THANKS TO ALL :)

  •  06-30-2009, 4:17 AM 53627 in reply to 53626

    Re: Select multiple file don't work !!!

    PS. Without the attribute MultipleFilesUpload="true" the upload work properly, but without multiple file selection function!
  •  06-30-2009, 4:20 AM 53628 in reply to 53578

    Re: Select multiple file don't work !!!

    Hi,
     
    You are using the wrong version .
     
    Please download it and try again :
     
     
    Regards,
    Terry
     
  •  06-30-2009, 10:42 AM 53636 in reply to 53628

    Re: Select multiple file don't work !!!

    THANKSSSS :)
View as RSS news feed in XML