Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EC651C72A for ; Thu, 31 May 2012 05:32:06 +0000 (UTC) Received: (qmail 59326 invoked by uid 500); 31 May 2012 05:32:06 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 59148 invoked by uid 500); 31 May 2012 05:32:06 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 59122 invoked by uid 99); 31 May 2012 05:32:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 05:32:05 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anis.kadri@gmail.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-yx0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 05:31:59 +0000 Received: by yenl13 with SMTP id l13so538695yen.6 for ; Wed, 30 May 2012 22:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=o9jCVYaS9TwkfirRepg+Ia0uXQJXz80Jjl5BQ07ct7g=; b=DVjxToWvj9vkfeT0qTUMMG9i+v80EXeuJcBsPxva31Mv6yRLqeUMmzBWWfWiH1Dlxq pfn7aUe4SrHFV4NWUb4dDF4Ye62W+TVlVGdpKVQcXGO7XcBJINOMVYez8RFechcOeQUA JYZ7X0JDIlchEP5WUBVoEKjg8MWDSfzV881F+0VuuQO+T2v+fA5RJkEQXppDSTfdRBQj LF31FWjYxBcd01Dezre0m40ViTdg0loJrnp3gVs0Bp8RSPyJPavj7tIItuRZTVNNMH74 qRZOBBfqMNuybeQNj2OZmAMRhGB+LtPUqQNTG/Lt6Wv1Gwd8C3nFPmeBgDfl9xjv9rYW cMTA== MIME-Version: 1.0 Received: by 10.236.190.4 with SMTP id d4mr583013yhn.73.1338442298724; Wed, 30 May 2012 22:31:38 -0700 (PDT) Received: by 10.236.22.8 with HTTP; Wed, 30 May 2012 22:31:38 -0700 (PDT) In-Reply-To: References: Date: Wed, 30 May 2012 22:31:38 -0700 Message-ID: Subject: Re: [DISCUSS] API addition: aborting FileTransfer upload/download process From: Anis KADRI To: callback-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=20cf305e1f87c491f604c14e617b --20cf305e1f87c491f604c14e617b Content-Type: text/plain; charset=ISO-8859-1 I was looking at it today. +1 for XHR level 2 On Wed, May 30, 2012 at 9:44 PM, Jesse wrote: > +1 XHR2 > I can polyfil it for WP7, primarily just js changes. > > On Wed, May 30, 2012 at 9:39 PM, Dave Johnson >wrote: > > > Since XHR2 is now available in iOS 5 and Android 3+ > > (http://caniuse.com/#search=xhr) we should probably change all of the > > FileTransfer API to be XHR2 instead of trying to fix the FileTransfer > > API. > > > > Less documentation on our part and standard API ftw. > > > > On Wed, May 30, 2012 at 2:45 PM, Brion Vibber wrote: > > > On Wed, May 30, 2012 at 1:33 PM, Filip Maj wrote: > > > > > >> Reference issue: https://issues.apache.org/jira/browse/CB-836 > > >> > > >> I am just fostering discussion here. Maybe a simple `abort` method, a > la > > >> XHR [1]? Seems the easiest. > > >> > > >> [1] https://developer.mozilla.org/en/DOM/XMLHttpRequest#abort() > > >> > > > > > > One difficulty is that FileTransfer.upload and FileTransfer.download > > don't > > > appear to return an object which can be used to refer to the ongoing > > > session. > > > > > > If it did, then having an abort method on it would seem perfect! > Existing > > > code that didn't understand the object should continue to just work. > > > > > > This would also be a great object on which to addEventListener() for > > > progress events... [2] > > > > > > [2] https://issues.apache.org/jira/browse/CB-622 > > > > > > -- brion vibber (brion @ pobox.com / brion @ wikimedia.org) > > > > > > -- > @purplecabbage > risingj.com > --20cf305e1f87c491f604c14e617b--