PHP Upload permissions.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
atm
Forum Newbie
Posts: 5
Joined: Wed Oct 29, 2008 1:24 pm

PHP Upload permissions.

Post by atm »

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!!!
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: PHP Upload permissions.

Post by aceconcepts »

So you don't have access to any of the code that actually uploads a file?
atm
Forum Newbie
Posts: 5
Joined: Wed Oct 29, 2008 1:24 pm

Re: PHP Upload permissions.

Post by atm »

Correct. It is all encrypted. :banghead:

Maybe I should have used a different forum... :roll:
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: PHP Upload permissions.

Post by aceconcepts »

No matter what forum you use, it'd be pretty difficult to try and help someone if they don't have access to any source code!!!
Post Reply