Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 95D7BE6E7 for ; Tue, 12 Feb 2013 17:24:16 +0000 (UTC) Received: (qmail 18354 invoked by uid 500); 12 Feb 2013 17:24:14 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 18325 invoked by uid 500); 12 Feb 2013 17:24:14 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 18314 invoked by uid 99); 12 Feb 2013 17:24:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 17:24:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.128.181] (HELO mail-ve0-f181.google.com) (209.85.128.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2013 17:24:10 +0000 Received: by mail-ve0-f181.google.com with SMTP id d10so295650vea.26 for ; Tue, 12 Feb 2013 09:23:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=LvGRw2TGNobv4aKDMVa+CODidSqLipL++Ed7X0BvicM=; b=j3mV4zoLJvHFV/2F0oBFS27sqTKRowp46GhnnyS+62CMRCjFlEQomXqnfpi+18Ph9K gYHY8J8cLpVyWXiibQjA9vBwYKGtYaZZO9efJ4/baAsGKiovL9Lf/XfApGpWgzlCsYs8 sMAdXG9qKn9vXf3e+UtVIbcRaBNhL1wkASWWbIbfDcio/PAEZcAGFKyR5SKVd81AdMKz Wsv9Gti2WRLUBUHffvXrTrj+uTkw9cqCH17lh/g0jSOFBMJgfRBis8tmjVU2l4Ih1Gsj V50M/idTgGVaW8/fUFdCuUtnGOcNX9Y07Yj48rREEBpuTTPAjMjHcR0P2nah1OfW12+K b2fg== MIME-Version: 1.0 X-Received: by 10.58.132.170 with SMTP id ov10mr24506836veb.57.1360689828315; Tue, 12 Feb 2013 09:23:48 -0800 (PST) Received: by 10.220.190.134 with HTTP; Tue, 12 Feb 2013 09:23:48 -0800 (PST) In-Reply-To: References: <7C607DE5D2148C4C838B9EBDA7DB4DE908A96023BF@ABRAHAM.us.maf.org> Date: Tue, 12 Feb 2013 18:23:48 +0100 Message-ID: Subject: Re: Attachment upload progress From: =?UTF-8?Q?Johannes_J=C3=B6rg_Schmidt?= To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=047d7b6da8f8ddc21d04d58a49e2 X-Gm-Message-State: ALoCoQmzVA6MZOQnxqeSQgx2ml4fsqPlRlWfALpGz8jthFjpLjOkksEaftkymCPjcp7WP3FC6RGK X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6da8f8ddc21d04d58a49e2 Content-Type: text/plain; charset=UTF-8 XHR2 has updateProgress events: https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest#Monitoring_progress 2013/2/12 Mark Hahn > Use https://github.com/blueimp/jQuery-File-Upload. It is awesome. Drag > and drop. Progress indicators. Multiple files. > > > On Tue, Feb 12, 2013 at 9:05 AM, Travis Paul wrote: > > > I'm was adding attachment support to one of my CouchApps today and > wondered > > the same thing. > > > > When I upload an attachment in futon it shows a loading bar but doesn't > > report the progress. However, the browser (Chrome) does show the upload > > percentage in the status bar at the bottom of the page. I'm curious if we > > can tap into that event (XHR?) since the browser obviously knows > > that something being uploaded. > > > > > > On Tue, Feb 12, 2013 at 11:49 AM, Jay Clark wrote: > > > > > Hi, > > > Is there a way to monitor the progress of an attachment as it is being > > > uploaded into a CouchDB document? A standard callback or something > > > (_changes feed? _active_tasks?) to know how much of the file has been > > > uploaded? > > > > > > I'm trying to show a progress bar to my user that shows upload progress > > > for files (especially large ones) as they are being attached to a > CouchDB > > > document. > > > > > > Thank you, > > > Jay Clark > > > > > > --047d7b6da8f8ddc21d04d58a49e2--