Hi, I was wondering if anyone has any ideas why my file upload code isnt working? The code makes the file in the appropriate folder, in this case a file called 'afile', but the file has no content?
Any help much appreciated,
Rob
PS I am uploading a file from a Windows machine to a UNIX server, I dont think this should make any difference?
#upload file
$upload_filehandle = $cgi->param("file1"
open UPLOADFILE, ">$projectdir/afile";
while (<$upload_filehandle>)
{
print UPLOADFILE;
}
close UPLOADFILE;
Any help much appreciated,
Rob
PS I am uploading a file from a Windows machine to a UNIX server, I dont think this should make any difference?
#upload file
$upload_filehandle = $cgi->param("file1"
open UPLOADFILE, ">$projectdir/afile";
while (<$upload_filehandle>)
{
print UPLOADFILE;
}
close UPLOADFILE;