|
Posted by Willem Bogaerts on 07/11/07 12:56
> ... I can chmod the file after is is moved into the
> destination folder via move_uploaded_file(), but I'm trying to understand
> why the uploaded file permission ends up at 0600 ?
Ok, I thought that you could not upload at all due to rights problems.
But I still cannot see the problem. The "upload generator" and the "web
server" are still the same user as far as I know, so this user should be
able to read (and serve) the 0600 files just fine.
As Jerry Pointed out, you can set the default umask in apache. Note that
this is a negative mask, so you have to set the bits that you want
cleared in the file permissions.
Best regards,
--
Willem Bogaerts
Application smith
Kratz B.V.
http://www.kratz.nl/
Navigation:
[Reply to this message]
|