Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Image permissions 777 when uploading


thinkingforward

Recommended Posts

Posted

Is there a way of them being set to 644 or 755 when uploading from within admin, rather than having to manually change the permissions each time?

 

Thank you

From what I have read on these forums, that is a server setting. My sites used to be that way and I just put up with it. Then one day I did not have to change permissions to upload anymore. I assume something on my server was updated or changed. I never asked because it did not seem too important at the time.

 

Tim

Posted

for images uploaded through admin the default setting is done in the admin/includes/classes/upload class

 

find the line:

 

function upload($file = '', $destination = '', $permissions = '777', $extensions = '') {

 

adjust that to suit your server. wink.gif

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Is it a security risk, having images uploading as 777?

If you must change the folder permissions to 777 in order to upload, then be VERY sure you change it back to 775 when you are done. If you leave the folder at 777 all the time, you will be hacked.

 

Tim

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...