Re: [Vfs-devel] Directory support
Status: Alpha
Brought to you by:
eesa
From: Tony K. <tk...@ca...> - 2000-07-25 16:53:27
|
> I have a client who would want to use VFS but needs to be able to upload > many files at a time. He currently uses FTP and just uploads a who > directory. The VFS is limited really to uploading a file a time. The same > with download. Can you think of any way around this? The problem is the > same with downloads. I can't think of any way to beat this problem becuase Uploading multiple files isn't a problem. That is if you want to have a form on a page something like the following; <form action="file-upload.html" method="post" enctype="multipart/form-data"> Upload these files:<br> <input name="userfile[]" type="file"><br> <input name="userfile[]" type="file"><br> <input type="submit" value="Send files"> </form> PHP would then create an array of the following for each file uploaded. $userfile[], $userfile_name[], and $userfile_size[] Maybe we could use something like an 'Upload how many file? <textbox>' type thing? I'm looking for a better solution to this now. As for downloading... Perhaps a 'Mark for Download' link next to each file, then a 'Download my Files' button which would take the user to a page with all the files listed on one page, linked and ready for download? Kind of like a shopping cart. The way hotfiles.com does it. How does all of this sound? Regards, Tony Kirk |