Re: [directory-upload] Consider how HTMLInputElement.getFilesAndDirectories could be used to avoid I/O blocking for FILE picking (#11)

Another way to fix this might be to introduce a 'willchange' event. This event would not fire when the picker is opened, but would rather fire after the user clicks "OK" to make a selection but before any I/O has occurred as described in issue #8.

This is an example of an approach to solving the problem for file picking that might impact on the API we'd prefer to have for directory picking. If we introduced a 'willchange' event then there wouldn't be any need for nulling out .files and having the Promise returning 'HTMLInputElement.getFilesAndDirectories' since that behavior and API exists to solve the blocking I/O problem (as described in issue #8).

---
Reply to this email directly or view it on GitHub:
https://github.com/WICG/directory-upload/issues/11#issuecomment-139238100

Received on Thursday, 10 September 2015 13:44:56 UTC