00Sven Posted July 31, 2006 Share Posted July 31, 2006 Hi, I have been looking around this site for a while since I started PHP and finally decided to join. Now on to the question...I have set up a file uploader for my site. This works perfectly except that I can only select one file at a time. Is there a way that I can allow the user to select more than one file at a time? Link to comment https://forums.phpfreaks.com/topic/16158-file-uploads/ Share on other sites More sharing options...
onlyican Posted July 31, 2006 Share Posted July 31, 2006 Several ways of doing this<form method='post' action='' enctype='multipart/form-data'><input type='file' name='ufile[]' /><br /><input type='file' name='ufile[]' />Making the results into an arrayor<input type='file' name='ufile1' /><br /><input type='file' name='ufile2' /><br />and then loop through themREMEMBERwhen having file uploads in forms you need to name the enctype in the form tag Link to comment https://forums.phpfreaks.com/topic/16158-file-uploads/#findComment-66754 Share on other sites More sharing options...
00Sven Posted July 31, 2006 Author Share Posted July 31, 2006 Is there any way so that they can select multiple files when they click on the Browse button instead of needing to do one each time? Link to comment https://forums.phpfreaks.com/topic/16158-file-uploads/#findComment-66767 Share on other sites More sharing options...
xyn Posted August 1, 2006 Share Posted August 1, 2006 No, the only way of doing this is to have more than 1 file upload fields. and array them like onlyican said. Althought I've used simelar methods. Link to comment https://forums.phpfreaks.com/topic/16158-file-uploads/#findComment-66876 Share on other sites More sharing options...
00Sven Posted August 2, 2006 Author Share Posted August 2, 2006 OK. I have seen some things about FTP functions around. Can those be used to do this? If so, can you recommend a place to learn them? Link to comment https://forums.phpfreaks.com/topic/16158-file-uploads/#findComment-67536 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.