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

> 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 UTC