Deutsches Support Forum

icon
Avatar
tmaes
Beiträge: 3
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
21.10.2009 11:27
Avatar
admin
Moderator
Beiträge: 887
Hi,

iconZitat:
is there a way to change those defaults access rights?
no. Normally 644 should work on most servers.
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
Avatar
rasoio
Beiträge: 2
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
[Zuletzt bearbeitet rasoio, 20.11.2009 16:02]
20.11.2009 15:55
Avatar
rasoio
Beiträge: 2
I've resolve it :rolleyes:




In /components/com_misterestate/includes/gallery/upload.gallery.php

I've added a Zero before 664


iconphp:
		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
icon