Re: upload file

2001-09-09 Thread Rajeev Rumale
Check out your form tag in the html page. does all the params set properly it should be something like this. The last param "enctype" is a must for file input type. which is genrally not their for normal forms let me know if you get it. regards Rajeev - Original Message - Fro

upload file

2001-09-09 Thread Konstantin
Hi. I'm trying to upload file with the next code: #!/usr/bin/perl use DBI; use CGI qw/:standard/; no strict; use constant MAX_FILE_SIZE => 1_048_576; use constant BUFFER_SIZE => 16_384; my $buffer = ""; my $cgi=new CGI; my $filename=$cgi->param('picture') || die ("No file name received."); my