Hi I'm using the following to upload a file to a server. But anything over a
1 meg does not go thru. Does anyone know why? I have increased the buffer
size to more than 1024.
Thanks in advance
Html bit
<snip>
<form action=mytest.cgi method=post ENCTYPE="multipart/form-data">
<input type=hidden name=action value=upload>
<input type="file" name="fileToGo"><br><br>
<input type=submit name=import>
</form>
Perl Bit
<snip>
open (OUTFILE, ">$fileName"
while (my $bytesread = read($file, my $buffer, 1024)) {
print OUTFILE $buffer;
}
close (OUTFILE);
1 meg does not go thru. Does anyone know why? I have increased the buffer
size to more than 1024.
Thanks in advance
Html bit
<snip>
<form action=mytest.cgi method=post ENCTYPE="multipart/form-data">
<input type=hidden name=action value=upload>
<input type="file" name="fileToGo"><br><br>
<input type=submit name=import>
</form>
Perl Bit
<snip>
open (OUTFILE, ">$fileName"
while (my $bytesread = read($file, my $buffer, 1024)) {
print OUTFILE $buffer;
}
close (OUTFILE);