Deutsches Support Forum
hi,
I encounter a problem with 1.6.1 on a opensuse Apache server.
uploaded pictures go to the right folder, but they have very restrictive rights and I have to change it manually for them to be visible in frontend...
is there a way to change those defaults access rights?
thanks in advance
--
thierry maes
I encounter a problem with 1.6.1 on a opensuse Apache server.
uploaded pictures go to the right folder, but they have very restrictive rights and I have to change it manually for them to be visible in frontend...
is there a way to change those defaults access rights?
thanks in advance
--
thierry maes
21.10.2009 11:27
Hi,
Could you please share some informations about your system configuration, so I could adjust the script in the future.
best regards
no. Normally 644 should work on most servers.Zitat:
is there a way to change those defaults access rights?
Could you please share some informations about your system configuration, so I could adjust the script in the future.
best regards
24.10.2009 02:06
It's the same for me, for every image I must manually change the permission
after upload i have this situation, you can see the permission in the attachment
Regards
Francesco
after upload i have this situation, you can see the permission in the attachment
Regards
Francesco
[Zuletzt bearbeitet rasoio, 20.11.2009 16:02]
20.11.2009 15:55
I've resolve it
In /components/com_misterestate/includes/gallery/upload.gallery.php
I've added a Zero before 664
In /components/com_misterestate/includes/gallery/upload.gallery.php
I've added a Zero before 664
php:
if($cfg['imgprtn']=1 && $cfg['imgheight']>=$cfg['imgwidth']) $image->resizeToHeight($cfg['imgheight']); else if($cfg['imgprtn']=1 && $cfg['imgheight']<=$cfg['imgwidth']) $image->resizeToWidth($cfg['imgwidth']); else $image->resize($cfg['imgwidth'],$cfg['imgheight']); #$image->scale(50); $image->save($dest_file,IMAGETYPE_JPEG,$cfg['imgqulty'],0644); if($cfg['createTb'] == 1) { $image->watermark = false; if($cfg['tbprtn']=1 && $cfg['tbheight']>=$cfg['tbwidth']) $image->resizeToHeight($cfg['tbheight']); else if($cfg['tbprtn']=1 && $cfg['tbheight']<=$cfg['tbwidth']) $image->resizeToWidth($cfg['tbwidth']); else $image->resize($cfg['tbwidth'],$cfg['tbheight']); #$image->scale(50); $image->save($dest_thmb,IMAGETYPE_JPEG,$cfg['tbqulty'],0644);
[Zuletzt bearbeitet rasoio, 20.11.2009 17:58]
20.11.2009 17:56




