Hello. i run an image hosting website. and the problem im having is that people are able to upload images but cannot view them. I have set the chmods on my upload folder (where the images uploaded are stored) to 777 this way public users can upload their images. The upload goes through and they get a link to where they can see image. But when they go to that link it says:

You don't have permission to access /uploads/b1928b83ce.gif on this server.

Is there any reason as to why this would be happening? is there a way to set chmods for all incoming files in the upload folder to 777?

any one please?

This is something you need to configure in the server software. You need to set the umask / mode bits for the incoming directory accordingly in the server's configuration file.