After the latest update to Windows 10, my Windows temporary directory was updated such that I re-encountered some of the problems I’d experienced earlier in the year. When I fixed the problem I didn’t write down the actions that I’d taken to restore access to my own files. This time I did.
In each directory where files are not accessible.
<br />takeown /F *.jpg /A<br />
<br />icacls * /grant QW:(OI)(CI)F /T<br />
Well, I nearly did. If forgot to add that you may have to give yourself access to the System windows temporary directory identified by environment variable
TEMP. In my case the directory is
C:\Windows\Temp. If you don’t do this then the original file, when copied to the uploads directory, will not be accessible. In explorer you won’t see its thumbnail.
Another way to fix the problem would be to take a look at the options in get_temp_dir().
I found the answers using StackOverflow. The older answers only mentioned
cacls. The updated ones referred to
takeown. Whether or not I needed to run
takeown I don’t really know. I hope I won’t have to revisit this again in the near future.
Original problem: H2GD Part 54: Windows 10 butterfly effect