Using webkitdirectory to upload a directory, is it possible to filter out certain files prior to uploading? : <p>I'm using <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory" rel="noreferrer">webkitdirectory</a> to create an input that allows uploading an entire folder (rather than selecting individual files). I know it's non-standard and shouldn't be used in production.</p>

<p>I'm uploading a specific type of folder where there is one very large file that isn't needed, and many other small files. The upload takes a long time because there's a large file, but because coincidentally that's also the one file I don't actually need on the server side, I'm wondering if there's any way to filter it out prior to being uploaded?</p>
