I have a web application coded in PHP for which users may need to upload many files to a server - anything from one to forty files, depending on what they want to do.
I have thought of a page of <input type=file ....> fields, but this means that the poor user has to choose each file individually, which gets tedious. An easier way for the user would be for he or she to select a folder on their PC containing the files, but HTTP doesn't seem to have a way of uploading a whole folder. Another alternative would be to require the user to ZIP the files into an archive and upload that (and then automatically unzip the archive at the server end), but I want the application to be OS-neutral and usable by rather naive users who may not know anything about archives (and may not posses a copy of an archiving program).
How have others solved this problem? Have you any suggestions for the best way of doing this?
nigel
UI to upload many files
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
-
nigelgilbert
- Forum Newbie
- Posts: 2
- Joined: Thu Dec 29, 2005 11:28 am
FSO/ADO
No, I do need to make it work with any OS: Windows, Mac and Linux. But thanks for the pointers.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: FSO/ADO
Then as far as I know...nigelgilbert wrote:No, I do need to make it work with any OS: Windows, Mac and Linux. But thanks for the pointers.
Your SOL
im studing a way
i had this problem too...
so, i search a lot in the internet and find that the better solution is to make a applet java that read the files on the client side(many if you wish) and compress the files, if necessary, then post to a php file, or other script language. Even i know there is a free applet at sourceforge called Jupload. Ask google for it
if you want to answer this my mail is ogeid08@yahoo.com.br . Im from Brazil, and sorry for bad english
bye!
so, i search a lot in the internet and find that the better solution is to make a applet java that read the files on the client side(many if you wish) and compress the files, if necessary, then post to a php file, or other script language. Even i know there is a free applet at sourceforge called Jupload. Ask google for it
if you want to answer this my mail is ogeid08@yahoo.com.br . Im from Brazil, and sorry for bad english
bye!