473,395 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 1588
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: x. zhang | last post by:
Hi Guys, We know that we can use <input type=file ...> to upload one file per time to the server. My question is if there are some way to upload multiple files per time to the server. (Of...
0
by: sales | last post by:
If you are having difficulty downloading large files, please check out www.Downloads4Dialups.com. Mention this newsgroup in the "Special Instructions" window on the Shipping Form, and receive a...
2
by: Gopal | last post by:
I am using ASP.NET and i wish to push down 3 files (text/xml) from the server to the client. I wish to give the user an option to select the folder in which we wants these files to be dumped. Any...
0
by: Michael L | last post by:
I have a problem and all the parts to fix it. I have a datagrid on my page that gets all of its information from a MS SQL Server 2000 Database. I do not have the option to go to VS.NET 2005 or...
0
by: just.starting | last post by:
I am having problem while downloading files from an apache server2.0.53 with php4.3.10.While downloading some files it generally stops after downloading some specific amount and then stops...
4
by: yehaimanish | last post by:
I am developing the project management system. Each Project: 1. Title, description ... , stored in mysql database 2. Upto ten files (initial description), (name in db, file in file system) 3....
1
by: Maury | last post by:
Hello, I would like to download multiple files with one click in a web form link, I know how to download a single file, and I think that a solution is to zip all the files in an archive, and then...
2
by: Ed Jay | last post by:
I have n files sequentially named sitting on a server that I want to download to my local machine. file1.jpg file2.jpg file3.jpg The script downloads only the last file, e.g., in this...
6
by: manjitsarma | last post by:
I want to create a functionality for downloading multiple files from the server. User can check multiple files and then when he selects download button it should download all the selected files...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.