Hi,

I wrote this simple script to upload files, but when I substitute param('uploadfile') 
with the actual path in double quotes it doesn't work that way. However, it works 
perfectly fine if I use the form to submit the path of the file through an html form 
(the way it is below). Can anyone help?

my $file = param('uploadfile');

open(UPLOAD, ">../employees/schedule.html") || Error();
my ($data,$length,$chunk);
while ($chunk = read ($file, $data, 1024)){
     print UPLOAD $data;
}
close(UPLOAD);


Thanks,
Mariusz

Reply via email to