473,418 Members | 4,802 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,418 software developers and data experts.

Multiple File Downloads?

Can anyone guide me in how to create a document that will allow a user to choose via checkboxes which files they would like to download and then have the download occur concurrently? In other words, I would like the user to be able to make multiple choices and have just one download.

Here is a sample of the idea: [HTML]http://www.rtape.com/download_library.html[/HTML] I'd like to create an admin form where the owner of the documents can populate a database with the files and then another form (like the one in the example) where a user could choose the downloads.

Thanks!
Sep 4 '07 #1
3 1232
jhardman
3,406 Expert 2GB
You can have the "download button" link to an ASP page which has no HTML content, instead it can use the ADO.STREAM object to open and send the files to the user. This object is designed specifically to open binary files from a db, but it works for files just saved to the drive. I've never tried this with more than one doc, so I'm not sure it would work that way, but I think it might be your only choice. Now that I think of it, I don't think I've ever seen more than one file download at a time unless it is all zipped together. Have you ever seen this done?

Jared
Sep 5 '07 #2
J-

I'm surprised this isn't possible although I can't think when I've seen it anywhere. I can use FTP to upload or download more than one file at once so I was hoping there was some way to make that work. I would be happy if the user chose three files and the result of the script was that the first file downloads, then the second download begins, then the third. I mean they don't have to download simultaneously, just consecutively. Seems like it should be possible, no?

-T
Sep 7 '07 #3
jhardman
3,406 Expert 2GB
I can't think of anyway to do this through conventional HTML and ASP. HTML is designed to ask for one file at a time, and asp only works while that one page is being accessed by the server. How about a javascript or ajax function that opens each of these files in a new window, one after another? I might be able to muscle through something like this, but I'm not an expert and I probably wouldn't find the best solution.

I almost suggested to use response.redirect to send a new file to the browser after the first one finishes downloading, but redirect does not work after you start sending data.

Jared
Sep 7 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Brandon Walters | last post by:
I wrote a file download module for my website. The reason for the file download module is that my website downloads work on a credit based system. So I need to keep track of and limit daily...
2
by: Ivo Tcholakov | last post by:
Hello, I created an application where the users need to download files. I have the list of the files stored in a database and I present the list to download in a Datagrid. Here comes my question....
1
by: RJN | last post by:
Hi Sorry for posting this again. Requirement is to allow the user to download multiple files at once from browser. User will be displayed a grid on the browser which will list the various files...
1
by: Chicagoboy27 | last post by:
Is there a way to import multiple csv files from a directory into sql 2005? The situation I have right now is that I have a folder with multiple csv files that i need to import into sql 2005. I can...
16
by: matt | last post by:
I have used some free code for listing files for download, but I want to send an email to the administrator when the file has been downloaded. I have got some code in here that does it, but it will...
1
by: Query Builder | last post by:
I have one of our production Accounting Databases starting from 2 GB now grown into a 20 GB Database over the period of a few years... I have been getting timeouts when transactions are trying to...
35
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from...
21
nathj
by: nathj | last post by:
Hi, I am currently working on a new site that offers various files for download. The file information is stored in a MySQL database and the page is produced in PHP depending on how the user got...
3
by: dynamo08 | last post by:
Hi, I am new to socket programming, I wrote an ftpclient which connects to an ftp server and downloads a file to the client computer. Now in one client connection I want to download multiple files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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,...
0
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...

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.