Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (Dunny), 32 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 10/01/06
Posts: 75
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#165320 - 10/08/06 05:42 PM [FIXED for 7.0.1] wrong chmod for uploaded avatars
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
My user upload a avatar and this file get chmod 600. with this permission my serveris not able to show this file. I need 644 or simelar. How to change it?


Edited by Rick (10/08/06 06:17 PM)
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#165321 - 10/08/06 05:48 PM Re: wrong chmod for uploaded avatars [Re: Zarzal]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
You can try to have the script change the permission after it's been uploaded. Try this. Edit changebasic.php, line 388 looks like this:

move_uploaded_file($_FILES['userfile']['tmp_name'], "{$config['UPLOADED_AVATAR_PATH']}/$Picturefile");

Right after that, add this:

chmod("{$config['UPLOADED_AVATAR_PATH']}/$Picturefile",0666);
Top
#165327 - 10/08/06 06:07 PM Re: wrong chmod for uploaded avatars [Re: Rick]
Zarzal Offline
old hand
Registered: 06/05/06
Posts: 1142
Loc: Berlin, Germany
yes just found out and like to post but you are faster. It worked.
_________________________
my board: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de
Ich kann bei Fragen zu UBBthreads in Deutsch weiterhelfen oder es zumindest versuchen
Top
#165349 - 10/08/06 11:39 PM Re: wrong chmod for uploaded avatars [Re: Zarzal]
Mark S Offline
Carpal Tunnel
Registered: 07/04/06
Posts: 4447
Loc: Liverpool : England : UK
V7.0

Would this also be related to "Check File Permissions" ?

When checking them in the control panel,
for the life of me could i get the avatar file check
to go green with okay?

It seemed that when ever i run the check,
it changed the file permission too?

Then i would go back and 777
run the check and they become 655 or something?
_________________________
Version v7.5.6 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
Oooo i hear 8 is coming? just after 7 my friend.
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image