How to load files, folders and subfolders using php

3

I wonder if it is possible to load files, folders and subfolders using PHP?  I know that in Java it is possible to do this type of upload, but in php I could only upload multiple files.

    
asked by anonymous 01.02.2016 / 03:41

1 answer

2

Using the webkitdirectory or directory attribute (in the same way that you use multiple ), you can add this functionality to your input file.

Exemplifying:

<input type="file" webkitdirectory directory multiple name="imagens[]" />

I saw this in this SOEN response:

How to upload folder with php

    
01.02.2016 / 16:44