help with multiple file downloads
Posted: Wed May 14, 2008 2:55 pm
ok, so I've looked and looked for ways to do the following:
1. user opens php page that displays a local (server) folder with available files to download to their computer
2. user selects one or more files to download, then clicks on Download button
3. popup window appears asking for the folder on the local machine to copy the selected files to
4. copying starts, keeping the filenames the same as on the server, overwriting files with the same name
5. the user is notified when the copy completes
I know all the security pitfalls of letting a download occur without user intervention, but in a way I'm determining what the user can download (lots of checks in place to prevent hackers performing a download), they only select the files and choose the folder destination. Sort of what FTP does but from the server side, not the client side. The database and files to download reside on the server side so I'm sort of locked into initiating it from a web portal (php/mysql based) system.
I've also contemplated creating a zip file of the selected files and just downloading the one file, but I don't want the user to have to manually unzip the file once it's downloaded. I'm trying to get around a lot of user interaction, to save the user keystrokes. A mandate from the higher ups in my company.
Comments and suggestions welcomed, please no sly remarks. Thanks!
Dan
1. user opens php page that displays a local (server) folder with available files to download to their computer
2. user selects one or more files to download, then clicks on Download button
3. popup window appears asking for the folder on the local machine to copy the selected files to
4. copying starts, keeping the filenames the same as on the server, overwriting files with the same name
5. the user is notified when the copy completes
I know all the security pitfalls of letting a download occur without user intervention, but in a way I'm determining what the user can download (lots of checks in place to prevent hackers performing a download), they only select the files and choose the folder destination. Sort of what FTP does but from the server side, not the client side. The database and files to download reside on the server side so I'm sort of locked into initiating it from a web portal (php/mysql based) system.
I've also contemplated creating a zip file of the selected files and just downloading the one file, but I don't want the user to have to manually unzip the file once it's downloaded. I'm trying to get around a lot of user interaction, to save the user keystrokes. A mandate from the higher ups in my company.
Comments and suggestions welcomed, please no sly remarks. Thanks!
Dan