Created "file" and can't access it?
Created some documents of type "file" on the siteframe server that I administer, and they seemed to be created OK. But I get "forbidden" (access denied) messages from the web server when I try to download the file. I can get a folder listing of .../files (is that supposed to be allowed?), and even .../files/0005 say, for user ID 5 (who has created a "file" document), but not for my own user ID. How can that come to be? I've tried this both logged in as a normal user and as admin. Same results. Both folders are forbidden even to admin. This is on Siteframe 3.2 Thanks.
Followup: Checked the user folders under .../files/ using a "file manager" (i.e. outside of Siteframe) and saw that their permissions are "750", i.e., "group" read, no access to "world". That was the case both for folders I could access and those I could not access. Changed one of those that I could not access to 755 (world allowed to read/exec) and then I could access it. But that does not explain why I could access some other ones with "750" permissions, nor why is Siteframe creating folders for users' files with this permission setting? And what does "group" mean in this context? Thanks for any help.
I am using Siteframe 3.2.3 as installed by Fantastico (cpanel). None of my files could be downloaded by anyone, until I changed the folder permissions to world:read and execute. I tried changing permissions for individual files without any effect.
Why is this happening? Bad install? the folder seems to belong to user, so I imagine I need to repeat this fix, for every user who wants to upload files.
I ran into the same problem as well. Users uploaded files okay but the webserver wasn't serving the files because of the permissions problem.
I changed a line in classes/siteframe.php from:
if (!mkdir($newdir,0770)) {
to
if (!mkdir($newdir,0777)) {
This should make the permissions of newly created user folders readable by world, and serve-able by the webserver.