Amr Magdy Posted March 4, 2017 Share Posted March 4, 2017 Hi all When I uploaded any image it uploaded to "/site/assets/files/xxxx" path with permission 600 and return 403 forbidden when I tried yo access it or edit it Thank you Link to comment Share on other sites More sharing options...
AndZyk Posted March 4, 2017 Share Posted March 4, 2017 Welcome @Amr Magdy, if your hoster doesn't allow file permissions 600, you could try the next higher permissions 640: https://processwire.com/docs/security/file-permissions/#potential-permissions-for-writable-directories-and-files Regards, Andreas 1 Link to comment Share on other sites More sharing options...
Amr Magdy Posted March 4, 2017 Author Share Posted March 4, 2017 Thank you But my config file now like this: $config->chmodDir = '0755'; // permission for directories created by ProcessWire $config->chmodFile = '0644'; // permission for files created by ProcessWire But after I upload new image I found 2 version of it : one named like :"orginal.0x260.jpg" with permission 644 another one with orginal name with permission 600 Sorry but I'm new to processwire Link to comment Share on other sites More sharing options...
AndZyk Posted March 4, 2017 Share Posted March 4, 2017 The permissions inside your config file were detected during your installation of ProcessWire and seem to be alright. 33 minutes ago, Amr Magdy said: But after I upload new image I found 2 version of it : one named like :"orginal.0x260.jpg" with permission 644 another one with orginal name with permission 600 This is the thumbnail used for the admin created from your original image. This is obviously the original image. But strange, that this one has permission 600. Sorry, but I have no explanation for this behavior. Maybe someone else here can help you or you have to contact the support of your hoster. Link to comment Share on other sites More sharing options...
Amr Magdy Posted April 13, 2017 Author Share Posted April 13, 2017 Thank you for your help Link to comment Share on other sites More sharing options...
Amr Magdy Posted April 13, 2017 Author Share Posted April 13, 2017 But still I have the same issue I tried to upload from another external PHP file to the same directory "assest/files" and it is uploaded with "644" !!! Anybody can help? Link to comment Share on other sites More sharing options...
Amr Magdy Posted April 23, 2017 Author Share Posted April 23, 2017 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now