perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd White <>
Subject file upload
Date Wed, 24 May 2006 21:10:26 GMT
I have a single small working program as a proof of concept for file
uploading using Embperl.  That program is as follows:

   $fh = $fdat{testfield};

   while (<$fh>) {
      $content .= $_;
<form method="post" enctype="multipart/form-data">
<input type=file name=testfield>
<input type=submit>

filename: [+ $fdat{testfield} +]<br>
content: [+ $content +]<p>


When uploading a simple text file, one sees the text of that file printed
next to the "content:" label.

This works on one of our machines but does not work on another and I
cannot determine what it is that causes it to fail on the one machine.

I'll call the two machines M_ONE and M_TWO.  It does NOT work on M_TWO.
Here is a little info on each machine...

Apache/1.3.29 (Unix)
HTML::Embperl 1.3.3
CGI 2.81

Apache/1.3.34 (Unix)
HTML::Embperl 1.3.6
CGI 3.04

What happens when run on M_TWO is that nothing is written to the $content

Any clues anyone can provide will be MOST appreciated.  Thanks.

--Todd M. White

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message