Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: CGI.pm's upload hook with tempfile off

by robartes (Priest)
on Nov 10, 2006 at 08:51 UTC ( #583309=note: print w/ replies, xml ) Need Help??


in reply to CGI.pm's upload hook with tempfile off

Which version of CGI are you using (try perl -MCGI -e "print $CGI::VERSION"), and what is the error you get when you set the use_tempfile parameter to 1?

CU
Robartes-


Comment on Re: CGI.pm's upload hook with tempfile off
Download Code
Re^2: CGI.pm's upload hook with tempfile off
by friedo (Prior) on Nov 10, 2006 at 20:09 UTC
    I'm using CGI version 3.15. I don't get any errors in the logs when I set the parameter to 1 or 0, it just fails to call the hook.

      It seems that CGI 3.15, which you have, does not have the use_tempfile parameter. The parameter you provide in your call to CGI::new() gets passed on to the 'normal' CGI initialisation (i.e. the code that builds the query contents), probably leading to all kinds of funny stuff behind the scenes.

      Try upgrading to CGI version 3.25, which does support the use_tempfile parameter. I have not checked whether it actually does anything yet, but at least you can set it in 3.25, as opposed to 3.15.

      Hope this helps you.

      CU
      Robartes-

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://583309]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-09-30 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (377 votes), past polls