Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a IIS Server and I have a KCFinder (combined with an CKEditor) to upload images and files over an editor.

When I upload an image it gets uploaded fine and I can see it. Other admin users can see it as well. But each other user that isn't in the admin group has no permissions to the file.

Can I set permissions with a PHP script, to give "IIS_IUSR" the neccessary rights? (As far as I know "chmod" isn't an option for IIS Server.)

What I have tried:

I tried to give "IIS_IUSR" the right to read & write for the upload folder and all its child elements. This works perfectly fine, until a new image or file will be uploaded by someone, which doesn't get the permissions of the home folder.
Of course I could just continue giving permissions manually all the time, but I need it to work even when I'm not around.

I tried to set the following Settings in ".\kcfinder\conf\config.php":

'dirPerms' => 0777,
'filePerms' => 0777,

-> Unfortunatelly nothing changed...

Any other ideas?
Posted
Updated 16-Feb-16 5:24am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900