Question:
I would like to know if it is possible to load files, folders and subfolders using PHP? I know who in java is able to do this type of upload, but in php I was only able to upload multiple files.
Answer:
Through the webkitdirectory
or directory
attribute (the same way you use multiple
), you can add this functionality to your input file.
For example:
<input type="file" webkitdirectory directory multiple name="imagens[]" />
I saw it in this answer from SOEN: