Hi,
Gears HttpRequest API is intentionally designed to minic XHR and thus
carries the same fate when it comes to network level errors.  XHR does not
provide network level errors to the caller in a particularly direct fashion.
The hope is that XHR2 spec will attempt to clarify these sort of needs.

Hope that helps,
Austin

On Sun, Nov 9, 2008 at 10:16 PM, Garret <[EMAIL PROTECTED]> wrote:

>
> I'm very excited about the file upload capabilities in Gears. But
> reading the documentation at
> http://code.google.com/apis/gears/api_httprequest.html
> , I can't figure out how error handling occurs.
>
> * How is an error reported for a file upload? For example, if I pull
> out my Ethernet cable in the middle of an upload, how is this
> reported? Does the readyState go to 4 (complete)?
>
> * How is canceling reported for a file upload? If I manually cancel
> the upload, does the readyState still go to 4 (complete) and I have to
> check to some flag to see if the upload was canceled?
>
> Thanks,
>
> Garret
>

Reply via email to