I'm not quite sure what you mean when you say you need to "parse the results of the file upload" but I will give this a shot...
In you example, I am assuming that "userfile1" and "userfile2" are the names you gave to the file input elements of a form. If that is the case, then the contents of the "$userfile1" and "$userfile2" variables in your program are temporary names given to the uploaded files when they were placed into a "temp" directory somewhere on your server. These files are truly temporary as they are automatically deleted after the execution of the script specified by the "action" element of the form that uploaded them.
If you want to get the uploaded files into your "/actionfiles" directory, the standard method is to simply use the "$userfile1" and "$userfile2" variables to copy the files from the temporary directory to the place where you want them. You can even rename them to your "$local_file" in the same step:
<?php
copy($imagefile1, $local_file);
unlink($imagefile1);
?>
The "unlink" function deletes the file from the "temp" directory since it is no longer needed. Even though the server will delete the file after your script has finished executing, it is good practice to do it explicitely.
I hope this resolves your issue.
-- Rich --