How to upload and list directories at firefox and chrome/chromium using change and drop events
问题 Both mozilla and webkit browsers now allow directory upload. When directory or directories are selected at <input type=\"file\"> element or dropped at an element, how to list all directories and files in the order which they appear in actual directory at both firefox and chrome/chromium, and perform tasks on files when all uploaded directories have been iterated? 回答1: You can set webkitdirectory and allowdirs attributes at <input type="file"> element; attach change , drop events to <input