in reply to Setting file upload permissions

To change the owner of a file, you'd call the chown function. But you have to be the owner of the file, or the superuser to be able to change the owner. Furthermore, sane OSses don't allow you to "give away" files, so only the superuser can change ownership.

Abigail