Your message dated Tue, 29 Mar 2005 15:15:27 +1000 (EST) with message-id <[EMAIL PROTECTED]> and subject line Bug#277595: unable to access files uploaded via forms from cgi scripts (perl) has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 21 Oct 2004 02:16:51 +0000 >From [EMAIL PROTECTED] Wed Oct 20 19:16:51 2004 Return-path: <[EMAIL PROTECTED]> Received: from sage.che.pitt.edu [136.142.178.208] (Debian-exim) by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1CKSVX-0000T8-00; Wed, 20 Oct 2004 19:16:51 -0700 Received: from harrold by sage.che.pitt.edu with local (Exim 4.34) id 1CKSfS-0004Mk-8s for [EMAIL PROTECTED]; Wed, 20 Oct 2004 22:27:06 -0400 Date: Wed, 20 Oct 2004 22:27:06 -0400 From: John Harrold <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: unable to access files uploaded via forms from cgi scripts (perl) Message-ID: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040722i Sender: John Harrold <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-3.9 required=4.0 tests=BAYES_00,FROM_ENDS_IN_NUMS, HAS_PACKAGE,HTML_40_50,HTML_MESSAGE autolearn=no version=2.60-bugs.debian.org_2004_03_25 X-Spam-Level: Package: apache2 Howdy, I've been struggling with this for a while. I migrated a couple servers from Redhat 9 to Debian/Sarge. Most things went without a hitch, except some of our web based forms allow file uploads which don't work any longer. I've tried this on a few Debian/Sarge machines (currently on a machine with Apache/2.0.52). The following cgi script demonstrates the problem I'm having. It failes to return the file handle when I try to use the upload method for the cgi perl module. I've looked around everywhere trying to figure this out. Since I didn't find anything, I'm guessing its a bug ;). <script> #! /usr/bin/perl -w use strict; use warnings; use CGI; MAIN: { my $option = ''; my $body = ''; my $html = ''; if(defined(CGI::param('pg_opt'))){ $option = CGI::param('pg_opt'); } if("upload file" eq $option ){ $fn = $query->CGI::param('nf::file'); $fh = $query->upload('nf::file') or die "unable to stat file upload $@"; $body = $fn; } else{ $body = " <form action=\"http://grok.tv:8080/dbdevel/fs/file/upload_file\" method=\"post\" enctype=\"multipart/form-data\"> <table width=\"100%\"> <tr> <td colspan=\"2\"> <input size=30 type=\"file\" name=\"nf::file\" value=\"\" /> <input type=\"hidden\" name=\"pg_opt\" value=\"upload file\" /> <input type=\"submit\" value=\"Upload file\" /> </td> </tr> </table> </form> "; } $html = " <html> <body> $body </body> </html> "; print "Content-type: text/html\n\n"; print $html; exit 0; } </script> -- ---------------------------------------------------------- | /"\ john harrold | \ / ASCII ribbon campaign jmh at member.fsf.org | X against HTML mail the most useful idiot | / \ ---------------------------------------------------------- What difference does it make to the dead, the orphans, and the homeless, whether the mad destruction is brought under the name of totalitarianism or the holy name of liberty and democracy? --Gandhi ---------------------------------------------------------- gpg --keyserver keys.indymedia.org --recv-key F65A739E ---------------------------------------------------------- --------------------------------------- Received: (at 277595-done) by bugs.debian.org; 29 Mar 2005 05:15:58 +0000 >From [EMAIL PROTECTED] Mon Mar 28 21:15:58 2005 Return-path: <[EMAIL PROTECTED]> Received: from loki.0c3.net [69.0.240.48] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1DG953-00054H-00; Mon, 28 Mar 2005 21:15:58 -0800 Received: from localhost ([127.0.0.1] helo=mail.0c3.net ident=www-data) by loki.0c3.net with esmtp (Exim 4.34) id 1DG94Z-0004JV-3l for [EMAIL PROTECTED]; Mon, 28 Mar 2005 22:15:27 -0700 Received: from 144.134.49.8 (SquirrelMail authenticated user adconrad) by mail.0c3.net with HTTP; Tue, 29 Mar 2005 15:15:27 +1000 (EST) Message-ID: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Date: Tue, 29 Mar 2005 15:15:27 +1000 (EST) Subject: Re: Bug#277595: unable to access files uploaded via forms from cgi scripts (perl) From: "Adam Conrad" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] User-Agent: SquirrelMail/1.5.1 [CVS] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: [EMAIL PROTECTED] X-SA-Exim-Scanned: No (on loki.0c3.net); SAEximRunCond expanded to false Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-3.8 required=4.0 tests=BAYES_01,HAS_BUG_NUMBER, PRIORITY_NO_NAME autolearn=no version=2.60-bugs.debian.org_2005_01_02 X-Spam-Level: John Harrold said: > Sometime in March Martin Struwe assaulted the keyboard and produced: > > > > Martin, > > > | $CGI::DISABLE_UPLOADS = 0; # Allow uploads. > ^^^^^^^^^^^^^^^^^^^^^^ > This was the answer. Thanks a bunch. Closing... -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]