thinkingforward Posted November 4, 2009 Posted November 4, 2009 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
multimixer Posted November 4, 2009 Posted November 4, 2009 Why do you have to change the permissions? My images folder is at 755 and I can upload any images, I mean product images My community profile | Template system for osCommerce - New: Responsive | Feedback channel
knifeman Posted November 4, 2009 Posted November 4, 2009 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
thinkingforward Posted November 5, 2009 Author Posted November 5, 2009 Is it a security risk, having images uploading as 777?
spooks Posted November 5, 2009 Posted November 5, 2009 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. 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.
knifeman Posted November 5, 2009 Posted November 5, 2009 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.