Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 19321 invoked by uid 500); 10 Sep 2002 17:51:24 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 19268 invoked from network); 10 Sep 2002 17:51:23 -0000 To: Hector Pizarro Cc: apreq-dev@httpd.apache.org Subject: Re: help with incomplete uploads References: <1031679318.1215.24.camel@hector.home> From: Joe Schaefer Date: 10 Sep 2002 13:52:52 -0400 In-Reply-To: Hector Pizarro's message of "10 Sep 2002 12:35:18 -0500" Message-ID: Lines: 29 User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hector Pizarro writes: [...] > My question is, is there any way to check if the upload is complete > before I save the file? I understood from the docs on the apreq mod that > "$upload ($apr->upload)" fetchs all that file and info related, but from > experience it seems it doesnt check if the upload is complete... The return value of $apr->parse should return an error status (non- zero) if the upload was interrupted. The Apache::Request documentation suggests you try something like my $status = $apr->parse; if ($status) { # error occurred my $errmsg = $apr->notes("error-notes"); warn "APREQ ERROR: [$status] $errmsg"; # handle error here } # parse successful; upload handling code goes here Does this catch the error? -- Joe Schaefer