Page 1 of 1
[SOLVED]multiple upload image permissions question[/SOLVED]
Posted: Thu Sep 27, 2007 2:21 pm
by reidjazz
I am using the KFM File Manager so that I can upload more than one file at a time; I have also used, until recently, the File Manager listed in the Module Manager to do the same thing...upload multiple files. But as of CMSMS 1.1.1 (or so), when I upload more than one file (in my case, images), they get CHMOD 600 (instead of CHMOD 664), rendering them useless until I manually change this.
Why is this happening? I did not have this problem prior to CMSMS 1.1.1.
Help!!!
Re: multiple upload image permissions question
Posted: Thu Sep 27, 2007 8:06 pm
by alby
reidjazz wrote:
I am using the KFM File Manager so that I can upload more than one file at a time; I have also used, until recently, the File Manager listed in the Module Manager to do the same thing...upload multiple files. But as of CMSMS 1.1.1 (or so), when I upload more than one file (in my case, images), they get CHMOD 600 (instead of CHMOD 664), rendering them useless until I manually change this.
Why is this happening? I did not have this problem prior to CMSMS 1.1.1.
I remember that in 1.1.1 is changed the setting mode of umask field in General Settings with octdec (luckily)
Try with 002 umask in this field
Alby
Re: multiple upload image permissions question
Posted: Thu Sep 27, 2007 11:36 pm
by reidjazz
alby wrote:
reidjazz wrote:
I am using the KFM File Manager so that I can upload more than one file at a time; I have also used, until recently, the File Manager listed in the Module Manager to do the same thing...upload multiple files. But as of CMSMS 1.1.1 (or so), when I upload more than one file (in my case, images), they get CHMOD 600 (instead of CHMOD 664), rendering them useless until I manually change this.
Why is this happening? I did not have this problem prior to CMSMS 1.1.1.
I remember that in 1.1.1 is changed the setting mode of umask field in General Settings with octdec (luckily)
Try with 002 umask in this field
Alby
Alby,
Sorry, tried this, uploaded 2 images...and they were both set to CHMOD 600.
reidjazz
Re: multiple upload image permissions question
Posted: Fri Sep 28, 2007 8:42 am
by bterkuile
I looked at the KFM uploads rights and nothing is done. It is server handled. If you want to use and realy need custom rights (and are willing to hack into the system) you can change the following in the modules/kfm/kfm/uploads.php file.
On line 19 there is an else statement (my (newer) kfm version ). add the following below:
If many people have problems with rights I will build a standard rights system into KFM. I think it should have the form:
Code: Select all
chmod($to, 0666-$gCms->variables['umask']);
Or something like that. But I am no rights expert, so comment on this is welcome.
Re: multiple upload image permissions question
Posted: Fri Sep 28, 2007 10:25 am
by alby
bterkuile wrote:
Code: Select all
chmod($to, 0666-$gCms->variables['umask']);
Try with:
Code: Select all
chmod($to, octdec('0'.$config['default_upload_permission']));
Alby
Re: multiple upload image permissions question
Posted: Wed Oct 03, 2007 11:14 pm
by reidjazz
bterkuile wrote:
I looked at the KFM uploads rights and nothing is done. It is server handled. If you want to use and realy need custom rights (and are willing to hack into the system) you can change the following in the modules/kfm/kfm/uploads.php file.
On line 19 there is an else statement (my (newer) kfm version ). add the following below:
If many people have problems with rights I will build a standard rights system into KFM. I think it should have the form:
Code: Select all
chmod($to, 0666-$gCms->variables['umask']);
Or something like that. But I am no rights expert, so comment on this is welcome.
That seems to have done the trick...thank you very much!!!
reidjazz
Re: multiple upload image permissions question
Posted: Thu Oct 04, 2007 1:42 pm
by bterkuile
This is now built in the new release of kfm. Also a setting for ImageMagick and cropping are available in the new release. (see notes).
Alby, thanks for your example, I based the fix in the new version on your example.
Benjamin