Quote:
Originally Posted by cellow
I have managed Server. But i had this new... i don't think that this is a server problem...
it's really strange 
|
Quote:
Originally Posted by CyberRanger
Your server has a very strict umask (the permissions that new files are automatically given.) For the normal uploaded files, we handle this by having this statement
PHP Code:
chmod($dl->url.$newfilename, 0666);
on line 1302 of downloads.php.
I'll try to figure out where you need to add it for uploaded image's permissions to get changed.
|
Look on line 829 for this line:
PHP Code:
move_uploaded_file($_FILES['image']['tmp_name'], $dl->url.$newfilename);
Add this below it:
PHP Code:
chmod($dl->url.$newfilename, 0666);
That should fix the permissions problem when adding images.