PHP Upload permissions.
Posted: Wed Nov 12, 2008 11:00 am
Hello there,
I have an application we are integrating into our website. The administrative back end of the code is encrypted so I do not have access to change the code at all.
I am having problems where the uploading feature works fine to upload however the file permissions on the newly uploaded files is set to 600 and is not readable by the browser unless I manually chmod the file.
I tried setting a umask but php does not pay attention to it, (touching a file will respect the umask so I know I set it correctly)
My existing permissions are 777 on the upload directory.
I've looked for a php.ini setting that would allow me to set specific upload permissions, but can't find anything.
Again, I do not have access to the source code because it is encrypted.
Any ideas?
Thanks!!!
I have an application we are integrating into our website. The administrative back end of the code is encrypted so I do not have access to change the code at all.
I am having problems where the uploading feature works fine to upload however the file permissions on the newly uploaded files is set to 600 and is not readable by the browser unless I manually chmod the file.
I tried setting a umask but php does not pay attention to it, (touching a file will respect the umask so I know I set it correctly)
My existing permissions are 777 on the upload directory.
I've looked for a php.ini setting that would allow me to set specific upload permissions, but can't find anything.
Again, I do not have access to the source code because it is encrypted.
Any ideas?
Thanks!!!