Posted on 2006-05-11
file upload...i m trying to upload client's file on server
print "Content-type: text/html; charset=iso-8859-1\n\n";
print "Upload File.........\n";
$query = new CGI;
$filename = $query->param("upload_file");
print "$filename : <br>";
$filename =~ s/.*[\/\\](.*)/$1/;
$upload_filehandle = $query->upload("upload_file");
$upload_dir = "C:\\file.txt";
open UPLOADFILE, ">$upload_dir";
while ( <$upload_filehandle> )
it does create the file c:\file.txt on server, but the file is empty, when menas the script is not able to read clients file...
Any ideas, why?
is it due to some apache configuration?