473,732 Members | 2,261 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Jan 8 '07 #1
3 1629
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************* ********@s34g20 00...legro ups.com,
"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.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
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.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/
Jan 8 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
10567
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 course, we can use <input type=file ...> multiple times and then submit once. But this is not what I want, because we have to click "browse" button several times to select multiple files before submit in this way.) "Upload multiple files PER TIME", I...
0
1377
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 20% discount. Help with downloading large files
2
1402
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 idea how can I download these files onto the client in one go? Thanks ~GOpal
0
268
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 ASP.NET 2.0 yet as my host is not that at that stage yet. I have PDF files that I want to download but I want to do something similar to what google does and have a checkbox in front of each box and have the application zip them into one file and...
0
1637
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 downloading with the error message: "the source file could not be read". And the error is not dependent on the size of the file, as I can download a file of 6MB but having problem with a file with 652KB. It always stops after 666880bytes. Thanks.
4
5167
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. Message board, stored in mysql database (1 file per message, message in db, file in file system) I need a link (Download Project) which will download all the project
1
1496
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 downloading it, but I'm looking fo another solution, do you think that is is possible another way? Thanks! ..:M:.
2
2115
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 example, only file3.jpg is downloaded.
6
1607
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 automatically. Please help me in this regard.... Thanks Manjit
0
8944
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8772
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9303
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9233
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9177
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8184
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6732
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6030
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

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.