WordPress.org

Ready to get started?Download WordPress

Forums

Uploaded images have wrong permissions (640) (4 posts)

  1. J_Walker
    Member
    Posted 2 years ago #

    I have a client who is wanting to build a WordPress site and they have their current site hosted by Suddenlink. WordPress installed fine and seems to function normally, except when uploading images. The uploaded file gets a file permission of 640, so there is no public read access, which results in a 403 - Forbidden error in the browser when trying to view the image. I can manually chmod the file to 644 and then the image is accessible. I believe this may be an issue with the host after googling around, but is there any way around this should the hosting provider fail to do anything about it?

    As a side note, the NextGen Gallery plugin seems to work fine.

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Try asking your hosts for assistance. There may be a folder ownership problem on your server.

  3. deekee
    Member
    Posted 1 year ago #

    I've got the same problem and it seems that WP is taking the file permission wrongly from the folder, the newly created folder should have 755 and not 750 which leads that file is permissioned with 640 instead of 644.

    I haven't found a solution yet!

    The workaround is to set the folder permission first to 755 and then upload the files and create the thumbnails, then the thumbnail permission are set correctly to 644.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @deekee - per the forum guidelines, please start your own thread if you need help. You'll get help faster and the forums work better that way too.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.