
Rivotti
User
Apr 11, 2000, 10:27 PM
Post #1 of 6
(522 views)
|
|
Still Can't Upload a File...
|
Can't Post
|
|
Hi: Have posted, some days ago, "Can't Upload File". I have a program that grabs a file from a form( whit file upload tag ) and then saves it on my server. This program was working last time I used him. Now I'm tryin to use the same code in another program but it doesn't work. the code is<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> #!/usr/bin/perl use CGI qw( :standard ); ... my $length; my $size; $dir='/home/web'; $file= new CGI->param('file_upload'); $file=~ m!([^/:\\]*)$!; my $short_name = $1; open (SAVE,">EXP/$short_name") | | die $!; while ($size = read($file,$data,1024)) { print SAVE $data; close SAVE; ...</pre><HR></BLOCKQUOTE> Can you see what I'm doing wrong? Rivotti
|