Is there a way to upload an entire folder in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
snehathomas184
Forum Newbie
Posts: 7
Joined: Tue May 27, 2014 3:40 am

Is there a way to upload an entire folder in php

Post by snehathomas184 »

Is there a way to upload an entire folder from local disk in php? I know I can do one file at a time or I can put as many INPUT tags in my html as needed, but I was looking for a way to upload an entire folderw folder by one input tag.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Is there a way to upload an entire folder in php

Post by Celauran »

Code: Select all

<input type="file" multiple="multiple" name="foo[]">
This won't upload a directory as such, but will allow you to select multiple files in a single input, which is about as close as you'll come.
Post Reply