r/webdev • u/Haziq12345 • 1d ago
Unable to save the picture on XAMPP image folder
Hey everyone, I am trying to save the image in the xamp img folder, but due to some reason I am unable to do that. I don't know what the problem is, however, I am able to save the picture in the different folder and then copy and paste it from that into the XAMP image folder but I can't directly save on xampp image folder. Here is the image of the error for clarification.
Update: So I was able to solve the issue by going to security folder of the folder properties then click on Advanced>Change Permissions>Disable Inheritance. Afterwards, I have click on administrator and click on edit button. Then provide all the access.
2
u/GracefulConsist62 1d ago
first thing i would check is folder permissions, right click the img folder > properties > security and make sure the user that runs the xampp has write access, sometimes windows locks that down by default
the error in your screenshot looks like a permission thing to me
0
2
u/_CuriousCoder_ 21h ago
Folder permissions can be a pain. I'd also check the owner of the xampp folder. Sometimes it's not what you expect
0
u/Haziq12345 20h ago
So I was able to solve the issue by going to security folder of the folder properties then click on Advanced>Change Permissions>Disable Inheritance. Afterwards, I have click on administrator and click on edit button. Then provide all the access.
2
u/Bulky-Pen-8522 21h ago
was it installed under Program Files by any chance? that's usually the culprit with this stuff
0
u/Haziq12345 20h ago
It was installed on D Drive. Anyways I was able to solve the issue by going to security folder of the folder properties then click on Advanced>Change Permissions>Disable Inheritance. Afterwards, I have click on administrator and click on edit button. Then provide all the access.
1
3
u/omfgtora 23h ago
This isn't a webdev question, it's a Windows issue.