Multiple Upload Controls on One Page

Last post 08-30-2010, 2:31 PM by Eric. 4 replies.
Sort Posts: Previous Next
  •  08-18-2010, 9:15 AM 63479

    Multiple Upload Controls on One Page

    How do I go about creating multiple upload controls on one page? Is it even possible with this solution?
     
    So, I can have it uploading to one directory on the top of my web page, and down on the bottom having a control that uploads somewhere else?
     
    Thanks.
     
    Regards,
    Apollyon
  •  08-18-2010, 9:29 AM 63482 in reply to 63479

    Re: Multiple Upload Controls on One Page

    Also, how do I restrict file size?
     
            Dim uploader2   
            Set uploader2=new AspUploader   
            uploader2.Name="myuploader2"
            uploader2.MultipleFilesUpload=true
            uploader2.SaveDirectory= "images\" + Session("Usercase")
            uploader2.AllowedFileExtensions="*.jpg,*.png,*.gif,*.bmp"
            uploader2.FileTooLargeMsg="{0} cannot be uploaded!\n\nFile size ({1}) is too large. The maximum file size allowed is set to: {2}."
            uploader2.Render()
     
    as an example..
  •  08-18-2010, 10:58 AM 63487 in reply to 63482

    Re: Multiple Upload Controls on One Page

    Please set property "MaxSizeKB" to restrict the size of uploaded files:
    <%
      Dim uploader
      Set uploader=new AspUploader
      uploader.MaxSizeKB=200
      uploader.Name="myuploader"
      uploader.AllowedFileExtensions="jpeg,jpg,gif,png,zip"
      uploader.MultipleFilesUpload=true
      uploader.InsertText="Select multiple files (Max 200K)"
      %>
    Regards,
    Eric
  •  08-19-2010, 11:07 AM 63525 in reply to 63487

    Re: Multiple Upload Controls on One Page

    Eric:
    Please set property "MaxSizeKB" to restrict the size of uploaded files:
    <%
      Dim uploader
      Set uploader=new AspUploader
      uploader.MaxSizeKB=200
      uploader.Name="myuploader"
      uploader.AllowedFileExtensions="jpeg,jpg,gif,png,zip"
      uploader.MultipleFilesUpload=true
      uploader.InsertText="Select multiple files (Max 200K)"
      %>
    Regards,
    Eric
     
    Anyone know about the other question? The multiple upload controls? I've tried as an example doing Dim uploader1, uploader2, uploader3... etc, with different uploader.name, with no avail..
  •  08-30-2010, 2:31 PM 63734 in reply to 63525

    Re: Multiple Upload Controls on One Page

    Dear Apollyonx83x ,

    Multiple Upload Controls on One Page is not supported right now. We will implement this feature in the future version.
     
    Thanks for asking
View as RSS news feed in XML