In the filemanager I can upload files to the default folder. But when I create a folder (using the button 'Create new folder') and try to upload a file to this folder, I get a popup saying "Failed to upload file, internal error..."
When I check de rights of the folder it's chmod 0755. When I change this into 0777 it's possible to upload files to a custom folder. So each time I create a folder I have to set the rights manually.
In the file CreateFolder.php there is a line which says:
if (mkdir($newdir,0777)) {
$err_no=0; //Success
} else
When I change this into 0644 for example, a created folder is chmod 0644.
So it seems like a folder is created and set 0777, but somehow later is set to 0755. Is this a setting in php.ini? Or can anyone help me solving this problem?
When I check de rights of the folder it's chmod 0755. When I change this into 0777 it's possible to upload files to a custom folder. So each time I create a folder I have to set the rights manually.
In the file CreateFolder.php there is a line which says:
if (mkdir($newdir,0777)) {
$err_no=0; //Success
} else
When I change this into 0644 for example, a created folder is chmod 0644.
So it seems like a folder is created and set 0777, but somehow later is set to 0755. Is this a setting in php.ini? Or can anyone help me solving this problem?

Re: upload files in custom folder
Where did you found this file: CreateFolder.php? Are you using CKFinder to upload files?
I can't find such code anywhere...
if (mkdir($newdir,0777)) { $err_no=0; //Success } elseAnyway, take a look at umask() function in PHP manual if you are using some custom code.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+