[wplug] apache config for html file upload forms. (resolved)

John Harrold jmh17 at pitt.edu
Tue Mar 29 10:18:57 EST 2005


Sometime in September John Harrold assaulted the keyboard and produced:

| Hey,
| 
| I've got apache running (Debian/Sarge), and some of my CGI scripts are not
| working correctly. Specifically some file upload forms are not working. So
| when I try to upload a file, I'm unable to access the file handle (in
| perl). This seems to have occurred when I moved the scripts from a RedHat
| server to Debian, so I was wondering if there was anything squirrely, wrt
| the default apache configuration that comes with debian, that I might not
| be aware of. I have mod_cgi installed and working, so the scripts work with
| the exception of the file upload form.

For the purposes of completeness:

Eventually some nice individual emailed me. It turns out that the
'$CGI::DISABLE_UPLOADS' variable is true by default on Debian while it was
false on Redhat. Placing the following at the top of my perl script:

$CGI::DISABLE_UPLOADS = 0;  

seemed to fix all my problems. Of course it's in the perldoc for CGI.pm ---
yeah I'm a dork. 

-- 
---------------------------------------------------------- 
                            | /"\                         
 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 pgp.mit.edu --recv-key B23241CB
----------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://penguin.wplug.org/pipermail/wplug/attachments/20050329/1a5ada05/attachment.bin


More information about the wplug mailing list