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.

Nico
Received on Wednesday, 23 May 2012 15:39:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:08 GMT