Thanks but this did not work.
I added the code to line one of one of the two pages that I am doing uploads from, changed fileField to upload and I still have exactly the same results.
It seems to me that I pass through this code when the page is loaded, not when the file is uploaded. So I am wondering if this is the correct place to add this code?
It would seem to me that this needs to be added somewhere within helperphp.php but where is the $1000 question because the code is not all that easy to follow. I know it is not the beginning of that file because it will have exactly the same effect as adding it to the beginning of my file.