rsknowles
Member
Posted 2 years ago #
As of a week ago, any time I upload an image to the media library its permissions get set to 640 instead of 644 which does not allow the image to be viewable in the browser. If I use my FTP client and manually set the permissions to 644 the images appear.
The immediate parent folder permissions are 755.
This is a new problem within the last couple days or so and I have not changed anything on my end.
Any idea how to troubleshoot this?
chrisdoth
Member
Posted 1 year ago #
Same problem today with me?
pramudita
Member
Posted 1 year ago #
I have same problem too
Tried to edit wp-config.php and added this code : define('FS_CHMOD_FILE', 0666);
Also I tried to add `<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|mp3|mpg|mp4|mov|wav|wmv|png|gif|swf|css|js)$">
Allow from All
</FilesMatch>` to .htaccess file in uploads folder
nige mcilwaine
Member
Posted 1 year ago #
Did this work?
Did you just add both bits of code to wp-config.php file at the bottom.
Is it not something WordPress should be fixing anyway?