I am using a form where I can upload both, a file or full folder. I am using following code:
<html>
<input type = "file" id = "file" name = "files[]" multiple/>
<input id="file" type=file multiple webkitdirectory directory>
</html>
With first input, I can upload file but not folder and with 2nd input, I can upload folder but not file. But I want to be able to upload both with same input.
Please tell me what is the exact code by which I can upload both file and folder in single click.