WordPress.org

Support

Support » How-To and Troubleshooting » Image Upload sets file perms to 640 instead of 644

Image Upload sets file perms to 640 instead of 644

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Same problem today with me?

    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

    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image Upload sets file perms to 640 instead of 644’ is closed to new replies.
Skip to toolbar