Page 1 of 1

Is there a way to upload an entire folder in php

Posted: Thu May 29, 2014 5:47 am
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.

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

Posted: Thu May 29, 2014 6:38 am
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.