Unable to save image in folder

Alles, was PHP betrifft, kann hier besprochen werden.

Unable to save image in folder

Postby sachinskn » 17. September 2022 13:09

I am unable to save images in folder but the image url is saving in database table .. please help me I am using xampp 7.4.29-1 version on MacOs M1 Chip
sachinskn
 
Posts: 1
Joined: 17. September 2022 12:58
XAMPP version: 7.4.29-1
Operating System: MacOs M1 Chip

Re: Unable to save image in folder

Postby Nobbie » 17. October 2022 15:49

Probably wrong permissions in the target folder. MacOS has a sophisticated rights managent for Users, Groups, Rest of World, who may or may not store files in certain folders. The User which runs Apache process must have sufficient rights to store files in the folder.

You need to know which User is running Apache (see httpd.conf "User=...."), which permissions are required and which permissions are given. MacOS is not Windows, which is far easier to handle. In Windows mostly every User may do everything. Thats different on MacOS.
Nobbie
 
Posts: 12634
Joined: 09. March 2008 13:04


Return to PHP

Who is online

Users browsing this forum: No registered users and 4 guests