Unable to remove "read-only" attribute from XAMPP wp-content folder on Windows

0

I've installed XAMPP on Windows 10, and installed Wordpress in XAMPP.

I am unable to upload images in Wordpress, receiving error:

Unable to create directory c:/xampp/htdocs/example/wp-content/uploads/2017/12. Is its parent directory writable by the server?

I have removed the solid black read-only flag on c:/xampp/htdocs/example/wp-content, and applied to all subfolders, but as soon as I close the folder Properties window, the solid-black read-only flag is back.

From this answer, I have downloaded Process Monitor, but can't see what is changing the attribute back.

I have tried the commands in this answer, setting the final command to set ownership for "Users", but the issue remains.

Help appreciated.

Steve

Posted 2017-12-13T03:55:04.303

Reputation: 2 473

Answers

0

The problem become irrelevant when I went to Wordpress Dashboard > Settings > Media, changed Store uploads in this folder from

C:\xampp\htdocs\superiorit\wp-content\uploads

to

wp-content\uploads

This change allowed me to upload media.

Steve

Posted 2017-12-13T03:55:04.303

Reputation: 2 473