having a problem with picture uploads in advanced guestbook.

the pictures get uploaded into the /guestbook/public directory but their permissions are wrong. They are only read/write for root....

-rw-------

the directory is 'owned' by the user.

If I manually change the file permission, the picture displays in the guestbook.


How can I fix this so they are uploaded with the correct permissions?