Re: [WICG/directory-upload] Consider to remove HTMLInputElement.getFilesAndDirectories andHTMLInputElement.getFiles (#33)

We considered this earlier on, but soon realized that the major pitfall with `HTMLInputElement.files` was that it fell victim to the synchronous nature of property retrieval. One of the main advantages and motivations for this spec was to go to a completely asynchronous model. This could enable better user experiences by allowing developers to be able to provide visual feedback to users about what is going on while the items are being processed. Both Mozilla and Microsoft verified that Firefox, Edge, and Chrome can take time to process many files/folders which would result in holding up execution of the JavaScript until the `FileList` is generated and passed through to `HTMLInputElement.files`. By introducing `Promises` (or `AsyncIterators` in the future), we can move to a model that works better for this sort of processing.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/directory-upload/issues/33#issuecomment-202596933

Received on Monday, 28 March 2016 21:59:21 UTC