Multiple file selection is not working

3 posts, 0 answers
  1. sathish venkat
    sathish venkat avatar
    27 posts
    Member since:
    Feb 2010

    Posted 20 Aug 2010 Link to this post

    Hi,

         i am using asyncUpload to upload multiple images to target folder.i am not able to select multiple images at a time.
    please verify the code below and help me to solve this issue.

    <

     

    telerik:RadAsyncUpload runat="server" TemporaryFileExpiration="01:00:00" ID="RadAsyncUpload1"

     

     

    MultipleFileSelection="Automatic"

     

     

    ControlObjectsVisibility="RemoveButtons" InputSize="45">

     

     

    </telerik:RadAsyncUpload>

     


     

     

    Protected Sub RadAsyncUpload1_FileUploaded(ByVal sender As Object, ByVal e As Telerik.Web.UI.FileUploadedEventArgs) Handles RadAsyncUpload1.FileUploaded

     

     

    Dim strFileName As String = Request.QueryString("orderid") & "_" & e.File.GetName())

     

    e.File.SaveAs(Path.Combine(Server.MapPath(

    "../Gallery"), strFileName))

     

     

    Me.SqlDataSource2.InsertParameters(0).DefaultValue = utility.ConvertStringToInterger(Request.QueryString("orderid"))

     

     

    Me.SqlDataSource2.InsertParameters(1).DefaultValue = System.DateTime.Now

     

     

    Me.SqlDataSource2.InsertParameters(2).DefaultValue = strFileName

     

     

    Me.SqlDataSource2.InsertParameters(3).DefaultValue = String.Empty

     

     

    Me.SqlDataSource2.Insert()

     

    System.Threading.Thread.Sleep(1000)

    CreateThumbNailImage(Server.MapPath(

    "../Gallery") & "/" & strFileName, 100, 100, strFileName)

     

    DataList1.DataBind()

    SetUpdateBtnVisibility()

     

    End Sub

     

  2. sathish venkat
    sathish venkat avatar
    27 posts
    Member since:
    Feb 2010

    Posted 26 Aug 2010 Link to this post

    and i am using Q2 2010.2.623.35 version dll
     previously i can select multiple images but i got login prompt issue then i added below script
     

     

    <

     

     

    script type="text/javascript">

     

     

     

     

     

    Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable =

     

    function() { return false; }

     

     

     

    </script>

     

     


    from http://www.telerik.com/community/forums/aspnet-ajax/async-upload/solution-upload-fails-or-login-prompt-appears-when-using-forms-windows-authentication.aspx

    now i am not getting login prompt and its working fine for single image but i cant select more than one images.
  3. h@r!
    h@r! avatar
    20 posts
    Member since:
    Aug 2010

    Posted 26 Aug 2010 Link to this post

    hi I am uisng telerik version 2009.3.1314.35.It is being used in the server also.I need to use rad async appload.Multiple files are being uploaded but they are saved by default in appdata with different format.Even I have given the target folder path it is no being considered.
    How can I customize the target folder path from the default path and save files in the correct format.

     <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1"
                OnFileUploaded="AsyncUpload1_OnFileUploaded" OnClientAdded="addTitle" MultipleFileSelection="Automatic" >
            </telerik:RadAsyncUpload>
Back to Top