472,144 Members | 1,855 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,144 software developers and data experts.

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.AddHeader("Content-Disposition", "attachment;
filename=" + fileName);
Response.AddHeader("Content-Length", "10");
Response.ContentType = "application/octet-stream";
Response.WriteFile(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

Jan 8 '07 #1
3 1503
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
11*********************@s34g2000cwa.googlegroups.c om,
"fa***********@gmail.com" <fa***********@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.AddHeader("Content-Disposition", "attachment;
filename=" + fileName);
Response.AddHeader("Content-Length", "10");
Response.ContentType = "application/octet-stream";
Response.WriteFile(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
Jan 8 '07 #2
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)

Jan 8 '07 #3
<fa***********@gmail.comwrote in message
news:11**********************@42g2000cwt.googlegro ups.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/
Jan 8 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by sales | last post: by
2 posts views Thread by Gopal | last post: by
reply views Thread by just.starting | last post: by
4 posts views Thread by yehaimanish | last post: by
1 post views Thread by Maury | last post: by
2 posts views Thread by Ed Jay | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.