- You have a WordPress instance in Windows with IIS.
- You upload a file. Its thumbnail is not shown in Media Library.
- You change the file permission. Its thumbnail now is shown correctly in Media Library.
- You upload another file and have to change the file permission manually again.
- How can we make WordPress automatically set the correct permission for new uploaded files?
- Ensure that the the Identity of Application pool that the website is running under is ApplicationPoolIdentity.
- Execute below commands as Administrator
icacls "C:\inetpub\wwwroot\domain.com" /grant "IUSR":(OI)(CI)F /T icacls "C:\inetpub\wwwroot\domain.com" /grant "IIS_IUSRS":(OI)(CI)F /T
3. Open IIS Manager, click on your website, click Authentication, click Anonymous Authentication (which should be the only one enabled), click Edit, select Application pool identity if it is not selected, click OK.
(Visited 1,853 times, 2 visits today)