Re: File API: closed Blob objects

On Dec 12, 2013 11:06 AM, "Boris Zbarsky" <> wrote:
> On 12/12/13 2:01 PM, Jonas Sicking wrote:
>> We can certainly debate if throwing an exception or if asynchronously
>> reporting a network error is the right thing to do for things like
>> XHR.send(closedBlob) or FileReader.readAsX(closedBlob).
> Or form submission after fileInput.files[0].close() ?

Actually this is a matter of definition.

Does fileInput.files expose the actual Files that are being submitted, or
does it expose clones of those files.

Clones are not affected when what they were cloned from is closed.

The simplest solution feels to me like it is to define that fileInput.files
exposes clones. So your code example would then not affect submission.

/ Jonas

Received on Thursday, 12 December 2013 20:08:39 UTC