I want to add functionality where user can either upload entire directory having images or can upload single/multiple images inside directory. I know how to make input field to select multiple images or make it to upload entire directory using following ways:
<input accept="image/x-png,image/gif,image/jpeg" required="" type="file" name="photos[]" id="photos" multiple="">
and for directory:
<input accept="image/x-png,image/gif,image/jpeg" required="" type="file" name="photos[]" id="photos" multiple="" directory="" webkitdirectory="" mozdirectory="">
But how can I use both of these features together? As if I use 1st approach I can't select folders and when use second can't select individual images.