Upload all files from a directory
Posted: Tue Dec 02, 2003 10:45 pm
Does anyone know if there is any way of doing this?
The problems I face in creating a function/class that can handle this are:
User needs to select a directory not a file which (as far as I know) <input type="file"> doesn't allow. Any ideas?
(All files in this directory then needs to be parsed and only the filetypes allowed selected which is easy enough)
The selected files then need to be uploaded from the client machine to the server, however as the <input type="file"> won't have been used they won't be sitting in any temp directory on the server yet. How do I get them off the client machine manually in PHP?
Thanks for any help you can offer.
Mike Bates
The problems I face in creating a function/class that can handle this are:
User needs to select a directory not a file which (as far as I know) <input type="file"> doesn't allow. Any ideas?
(All files in this directory then needs to be parsed and only the filetypes allowed selected which is easy enough)
The selected files then need to be uploaded from the client machine to the server, however as the <input type="file"> won't have been used they won't be sitting in any temp directory on the server yet. How do I get them off the client machine manually in PHP?
Thanks for any help you can offer.
Mike Bates