• Since recently, whenever I upload an image using “Add Media”. It is not shown in preview nor on my post.

    If I go to the server, I do see the file in the wp-contents/uploads/year/month folder, but I need to change permissions for it manually.
    I have set the wp-contents folder permissions for user IIS_IUSRS and IUSR to modify, including replace child permissions, however, whenever a new file is added this permission is not copied from the folder. The thumbnails however do have the correct settings.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter joachimcarrein

    (@joachimcarrein)

    I went to the root folder of my wordpress installation and set security to not inherit from parent folders. Then added IIS_IUSRS as full control, everyone as full control and IUSR as full control. Did replace all child permissions as well.

    Again the same thing happens. The upload.jpg gets some weird permissions, the thumbnails get the 3 permissions set up, however the original has following permissions:

    – SYSTEM: Full
    – IUSR: Full
    – Everyone: Full
    – IIS_IUSRS: Special (List Folder/Read Data – inherit from parent)

    but still a now show on my post for this image. This actually causes an internal error when directly trying to open the png. On the server self, I get following notice:
    HTTP Error 500.50 – URL Rewrite Module Error.

    Thread Starter joachimcarrein

    (@joachimcarrein)

    Just found it…

    Apparently in the php.ini file, the file uploads pass a temporary folder. And these permission are copied with the file.

    Solution was found here:
    https://www.howyoudo.info/index.php/how-to-fix-windows-server-upload-file-inherit-permissions-error/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘File upload messing with permissions’ is closed to new replies.