I was able to check the owner of a file uploaded by using:
fileowner(pathtofile);
I then did the same function on a file uploaded through ftp, and of course they are different.
I then tried a chowner command after uploading the file(all in same code, after I did the copy)
checked the owener on that file and it is still set wrong.
So evidentally the chown is not working...
likely no access.....
Well i check phpinfo and it appears that it is uplaoding as the apache user which is 1002.
My FTP user id is 10217
I am assuming that the apache user does not have access to chown a file to my ftp account....sigh
put my chmod command in a if statement to debug it...
seems to be failing. therefore I am assuming it does not have enough power to chown on the file...