Hi everyone!
I am using cpanel on my hosting and I have a problem.
I have a simple upload system such as uploads/files/images
When the user uploads a file and an image, that image gets 644 file permission as default and I can not view the uploaded image. When I try to view that image I get:
****
Forbidden
You don't have permission to access /uploads/12/18.jpg on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
****
However if I manually change the file permission to 755, I can view the image. And the problem comes here..
I can not set 755 file permission as default so the uploaded images are not viewable.
Where should I look? what can I do for this?
Thank you very much in advance!
Haldun
I am using cpanel on my hosting and I have a problem.
I have a simple upload system such as uploads/files/images
When the user uploads a file and an image, that image gets 644 file permission as default and I can not view the uploaded image. When I try to view that image I get:
****
Forbidden
You don't have permission to access /uploads/12/18.jpg on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
****
However if I manually change the file permission to 755, I can view the image. And the problem comes here..
I can not set 755 file permission as default so the uploaded images are not viewable.
Where should I look? what can I do for this?
Thank you very much in advance!
Haldun