Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to know if I can create a .NET webpage, that will allow an enduser to select multiple files and download them one at a time from a web browser. All this without having to save each file individually.
Ideally, they would select the files from a webcontrol that has them listed. Then then select WHAT files they want to download by using a checkbox.. then click a DOWNLOAD BUTTON.
This would then prompt for the destination directory on their local computer.(In awindows application this would be a FolderBrowserDialog) And it would save all the selected files without being prompted for every file.

Thanks, PJA
Posted
Updated 2-Dec-10 12:33pm
v2
Comments
Patrick Adams 3-Dec-10 14:33pm    
Thanks for the answer but I want to download multiple files from a browser (to a desktop), in one click. And why is it, that only one file can be downloaded at a time?

Also, could the requested download from the browser be the 'client' that you talk of, that is preloaded with the 'manifest' or uses a webservice to get the needed data.
thanks again, Pat

1 solution

You cannot return multiple files to the browser in one response.

There are a variety of ways of doing this, the most common of which is a download manager. The download manager would run seperate from the web page and do exactly what its name implies - download files.

Your web page would need to return a manifest to the client, which would pass that manifest to the download manager and the manager would request each file and download them all, one at a time.
 
Share this answer
 
Comments
Sandeep Mewara 3-Dec-10 11:42am    
Comment from OP:
Thanks for the answer but I want to download multiple files from a browser (to a desktop), in one click.
And why is this, that only one file can be downloaded at a time?

Also, could the requested download from the browser be the 'client' that you talk of, that is preloaded with the 'manifest'. So that the user selects the files they want, clicks the download button, with triggers the manifest (array) to be incorporated into the downloading client. that once installed.. does its work.

thanks again, Pat

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900