I'm using CGI::Minimal version 1.09. I used ppm to install it, just tried reinstalling it - didn't help. My perl is ActiveState distribution (v5.6.1 built for MSWin32-x86-multi-thread). I'm using a Windows 2000 Professional system with IIS webserver installed on it.

I have just tried running the code you gave me - still doesn't finish. And below is the code I used for tests before:

To test file upload using CGI.pm - successful

# to test form upload using CGI.pm - works fine! use strict; use warnings; use CGI; my $cgi = CGI->new; print "Content-Type: text/html\n\n"; print "<body><html>\n"; my $fh = $cgi->upload("file1"); print <$fh>; print "</body></html>\n"; exit(0);

To test file upload using CGI::Minimal - does't work!

# to test form upload use strict; use warnings; use CGI::Minimal; my $cgi = CGI::Minimal->new; print "Content-Type: text/html\n\n"; print "<body><html>\n"; print $cgi->param("file1"); print "</body></html>\n"; exit(0);

Below is html for the form

<html> <head> <title>CGI::Minimal test</title> </head> <body> <form enctype="multipart/form-data" action="/cgi-bin/upload.pl" method +="post"> <input type="file" name="file1"> <input type="submit" value="Submit"> </form> </body> </html>

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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.