How to load files, folders and subfolders using php

Asked

Viewed 208 times

3

I wonder if it is possible to upload files, folders and subfolders using PHP? I know who in java can do this kind of upload, but in php I could only upload multiple files.

1 answer

2

Through the attribute webkitdirectory or directory (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 it in that SOEN response:

How to upload How to upload

Browser other questions tagged

You are not signed in. Login or sign up in order to post.