Download files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nagmvs
    New Member
    • Aug 2008
    • 49

    Download files

    Hello,

    Can anyone tell me how can i create a button in asp and link to download files from some folder one by one Simultaneously?
    I wrote some code to download one file,i don't no how to write the code to download files one by one from specific folder.
    my code is

    (I WROTE IN ASP USING VB.NET)
    <a href="Test1/0MM0.wmv">TEST</a>

    Here Test1 is the folder and 0MM0.wmv is the file suppose two files in the Test1 folder means how can i download files one by one for that what code i want to write in ASP using VB.NET.

    Here i want to create some fun suppose when the user select one file using button after he downlaod the file the button will be Disable.and when he upload the file the button will be enable.Already i wrote some code for Uploading.

    So i wnat the code for downloading.so please help me.

    Thanks in advance,
    Nagesh.
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Hi Nagesh,

    Can you confirm please whether you are using Classic ASP or ASP.NET please?

    Dr B

    Comment

    • nagmvs
      New Member
      • Aug 2008
      • 49

      #3
      Originally posted by DrBunchman
      Hi Nagesh,

      Can you confirm please whether you are using Classic ASP or ASP.NET please?

      Dr B
      Hello Sir i am using Classic ASP.( Microsoft Visual Interdev 6.0).

      Thanks,
      Nagesh.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Have you considered packaging the files for download into a .zip file?
        This will let them download more than one file at a time...in a package.

        I don't think there is a way to do what you are asking without dynamically generating a link for each file and allowing the user to select which files they want to download.

        -Frinny

        Comment

        • jhardman
          Recognized Expert Specialist
          • Jan 2007
          • 3405

          #5
          Originally posted by Frinavale
          Have you considered packaging the files for download into a .zip file?
          This will let them download more than one file at a time...in a package.

          I don't think there is a way to do what you are asking without dynamically generating a link for each file and allowing the user to select which files they want to download.

          -Frinny
          I believe Frinny is right. I have never seen anyone get around this limitation. I would think it might be possible using javascript (as long as it is allowed by security settings): when the first file is downloaded start downloading the second etc, but I've never seen this done either, and I don't know enough javascript to try it.

          Jared

          Comment

          • DrBunchman
            Recognized Expert Contributor
            • Jan 2008
            • 979

            #6
            Could you have some server side code zip all the selected files up and have the user download the zip file?

            Dr B

            Comment

            Working...