Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Re: Re: CGI::Minimal does not work with enctype="multipart/form-data"?

by relax99 (Monk)
on Oct 24, 2002 at 12:42 UTC ( #207680=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: CGI::Minimal does not work with enctype="multipart/form-data"?
in thread CGI::Minimal does not work with enctype="multipart/form-data"?

I figured out my problem. In order to my CGI::Minimal work on my Windows 2000 system I need to initialize $cgi object this way:

binmode STDIN; # CGI::Minimal will freeze without it with multipart/fo +rm-data forms my $cgi = CGI::Minimal->new;

Once you do that, it works like a charm.

  • Comment on Re: Re: Re: Re: Re: CGI::Minimal does not work with enctype="multipart/form-data"?
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: CGI::Minimal does not work with enctype="multipart/form-data"?
by valdez (Monsignor) on Oct 24, 2002 at 12:58 UTC

    Wonderful, thanks for telling that to us! Please send a bug report to CGI::Minimal's author.

    Ciao, Valerio

      Well, is it really a bug or is it the intended behavior? I consider my knowledge of Perl to be intermediate, so I'm cautious to imply that he didn't indend that to happen. I did email him with the original description of the problem to the email I found in CGI::Minimal docs, but I haven't received a response.

      Btw, below is a piece of discussion from comp.lang.perl.misc:

      I wrote:
      - As soon as I add enctype="multipart/form-data" to my form tag, my script that uses CGI::Minimal never finishes. I know the problem is in CGI::Minimal, because CGI.pm and direct read from STDIN work just fine.

      Someone replied:
      - Why? Because it works one but not on the other? That's not a firm argument. Perhaps it is in your code! CGI::Minimal has proved to me to be a fine piece of code. I recommend you don't vent your opinion in this way to the CGI::Minimal author.

      To sum it up, I'm glad I can keep using CGI::Minimal

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2021-05-17 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (158 votes). Check out past polls.

    Notices?