File permissions - scripted?

Hi i know this has been dicussed a number of times before but my situtation has not been reoslved ill explain why.

When i upload photos via the admin page it sets the permission to 604 (same when i upload via FTP) and then i mannual need ot wait for all the processing to occur and then set it to 644 and all is good. I spooke to the ISP and they wont set the defualt persisson to anything higher as it is a shared server.

SO is there a way to runa scirpt or add o the code creating the images/thumnails etc a funcaiton to sert th efile permissions?

hers is a link to the gallery if you are interested
http://sugarcottagecakes.co.uk/gallery/ i have integrated the default themee into my own CSS to make it as seemless as possible.
thanks
rob

Comments

  • The back-end upload will attempt to set the file permissions based on your global setting (done in setup). So if you have permissions at the normal 0755 it will attempt to set the uploaded image to 0644 which is what you want. It that does not happen, then your ISP has disabled PHP from changing permissions. In that case there is no [php] script that can help.
Sign In or Register to comment.