W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2012

Re: [whatwg] Make files attribute of the input element writable

From: Nico Weber <thakis@chromium.org>
Date: Wed, 23 May 2012 08:37:46 -0700
Message-ID: <CAMGbLiGu+Yq3Lg4fFzAn1RBp+By5eaAe9Bdryk51udoZB=kQ=g@mail.gmail.com>
To: Maciej Stachowiak <mjs@apple.com>
Cc: whatwg@whatwg.org, Adam Barth <w3c@adambarth.com>
> But, by the same token, XHR upload of FormData[1] already serves this use case in a more flexible way. You can even make a FormData from the contents of an html form and then add additional File objects. Making the change would (afaict) not serve any new use cases. At most it would be a convenience.

Agreed, it's a convenience, the same could be do with a sync XHR
followed by a location.reload(). The readonly restriction exists for
historical reasons, and dropping it seems like a small change that
makes the web platform more usable.

Received on Wednesday, 23 May 2012 15:39:15 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:42 UTC