Are you wanting to automatically upload a file? A PHP script cannot initiate the upload?
It has to be the browser that initiates the upload (by POSTing the file).
You can save the filename into a session variable and use it then to prepopulate the data field. This would stop the use from having to 'browse' for the file.
But the user would always have to go back to the form.