W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: Proposal for sending multiple files via XMLHttpRequest.send()

From: Alfonso Martínez de Lizarrondo <amla70@gmail.com>
Date: Sat, 12 Sep 2009 11:03:07 +0200
Message-ID: <af2a8eab0909120203if5a418cwf2286e05411dd6@mail.gmail.com>
To: Jian Li <jianli@chromium.org>
Cc: Yaar Schnitman <yaar@chromium.org>, public-webapps@w3.org
> Since XMLHttpRequest spec has already added the overload for send(document),
> why not just adding more overload for file and array of items? IMHO, having
> similar send*** methods, like sendFile, together with overloads of send()
> might make the API more complicated.

If the browser doesn't provide any system to detect that it supports
this feature, then the only way to enable it is to do UA sniffing, and
I thought that everyone agreed that this is bad because when the code
is deployed it must be updated for each new browser that implements
this API.

I wrote about my point of view about this kind of features in
http://alfonsoml.blogspot.com/2009/08/upload-progress-for-firefox-35.html
As I said there, if other browser implements that API the code will
work automatically for them. It's not a problem to add new code to
support a new API, but make it work based on UA it isn't nice.
Received on Saturday, 12 September 2009 09:03:49 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:33 GMT