Image Upload sets file perms to 640 instead of 644 (4 posts)

  1. rsknowles
    Posted 5 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?

  2. chrisdoth
    Posted 5 years ago #

    Same problem today with me?

  3. pramudita
    Posted 5 years 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

  4. nige mcilwaine
    Posted 4 years 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?

Topic Closed

This topic has been closed to new replies.

About this Topic