Quote:
Originally Posted by silencerdeluxe
Didnt find an answer for this Problem, thx for help!
|
Quote:
Originally Posted by Fish UK
Firstly, thank you for a great mod, just what I was looking for.
However I have a little problem I was hoping someone could assist with.
When an image is uploaded for a download it uploads with the permissions 600 which means it cannot be viewed.
The main download file uploads fine (666) and so does the thumbnail created (666).
The folder permissions are 777 and the ownership correct.
I am running the latest version of this mod and of VB. Any help would be much appreciated.
TIA
|
I think this will fix your problem. In downloads.php, around line 818 find:
PHP Code:
move_uploaded_file($_FILES['image']['tmp_name'], $dl->url.$newfilename);
BELOW that ADD
PHP Code:
chmod($dl->url.$newfilename, 0666);
Let me know how it works.