You can use the PHP-Command copy. For detailed infos see PHP-Manual.
copy ($source-file,$destination-file)
$source for example could be the form-file-result of a selected file on your lokal machine.
$target is the destination (new location) of your file (for example your host-home -dir)
Hope this helps
Karsten