$filename = [inputted field with Local Address, eg c:/file.jpg]; $file = [split of the filename removing everything before the last /] open(OUTFILE,">>[destination].$file"); while ($bytesread=read($filename,$buffer,1024) ) { print OUTFILE $buffer; } $fh = upload('[name of field]'); while(<$fh>) { print; }