downloading multiple files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • fatima.issawi@gmail.com

    downloading multiple files

    Hello,

    Is it possible to download multiple files? Right now I am using the
    following code in a loop, but I can only save one file - the first one.

    Response.Clear( );
    Response.AddHea der("Content-Disposition", "attachment ;
    filename=" + fileName);
    Response.AddHea der("Content-Length", "10");
    Response.Conten tType = "applicatio n/octet-stream";
    Response.WriteF ile(paths);
    //Response.End();

    Is there something I am doing wrong? Is there another way of
    implementing this that I am unaware of? I am new to this, so any help
    will be appreciated.

    Btw, I did read in a post that zipping the files into one file would
    work, but I cannot implement it this way.

    Thanks!
    Fatima

  • Bruce Barker

    #2
    Re: downloading multiple files

    No, its not supported by the browser. The most common approach is to zip the
    files into one file.

    -- bruce (sqlwork.com)


    On 1/8/07 6:38 AM, in article
    1168267133.3249 97.78280@s34g20 00...legro ups.com,
    "fatima.issawi@ gmail.com" <fatima.issawi@ gmail.comwrote:
    Hello,
    >
    Is it possible to download multiple files? Right now I am using the
    following code in a loop, but I can only save one file - the first one.
    >
    Response.Clear( );
    Response.AddHea der("Content-Disposition", "attachment ;
    filename=" + fileName);
    Response.AddHea der("Content-Length", "10");
    Response.Conten tType = "applicatio n/octet-stream";
    Response.WriteF ile(paths);
    //Response.End();
    >
    Is there something I am doing wrong? Is there another way of
    implementing this that I am unaware of? I am new to this, so any help
    will be appreciated.
    >
    Btw, I did read in a post that zipping the files into one file would
    work, but I cannot implement it this way.
    >
    Thanks!
    Fatima
    >

    Comment

    • fatima.issawi@gmail.com

      #3
      Re: downloading multiple files

      Is there any other way of doing this? Without zipping the files?

      Fatima

      Bruce Barker wrote:
      No, its not supported by the browser. The most common approach is to zip the
      files into one file.
      >
      -- bruce (sqlwork.com)
      >
      >

      Comment

      • Mark Rae

        #4
        Re: downloading multiple files

        <fatima.issawi@ gmail.comwrote in message
        news:1168275213 .560611.278810@ 42g2000cwt.goog legroups.com...
        Is there any other way of doing this? Without zipping the files?
        Not natively - you'll need something like a Java applet for this.

        I use this one a lot: http://www.utechsoft.com/products/udownload/


        Comment

        Working...