I have small problem and i was cannot find solution cause always is talking about not my subject. (maybe bad keywords)

I use Private Upload files method and customize path settings so i have generate automatically lot different sub-folders. But Drupal is not create in this sub-folders .htaccess files for protect it. It works only manually copy but is not a solution for me.

Do someone has that same problem, how to fix it ?

Thanks
Martin

Edited by: VM; Moved to appropriate forum

Comments

vm’s picture

are you getting an error message? if so, what is it?

what are the folder level permissions?

where is the files folder located? in the sites/default folder or drupal or have you moved it above the public_root to ensure the files are really private?

ShadowMonster’s picture

I not think this is problem of permission.

I stored files in standard folder sites/default/files directory permission is on 755 but on www-data user owner and is create files without problem.

Everything is work fine but only problem is with this .htaccess who is not created in new subfolders. I was miss one thing: my path to files in url browser is changed on example http://domain.com/system/files/images/marcin/10122009/ when really on server is in /sites/default/files/images/marcin/10122009/.

I'm fresh with drupal

I use Image module but this problem is also with another modules. I was try find some logs but I cannot find anything in drupal or also in Apache2.

I feel how I miss something and this can be problem with my apache.

Regards
Martin

vm’s picture

try 777 on the files folder

for the files folder to truly be private it should be moved above the public_root where users can't access the files unless logged in. As it stands now you've set the file system to private but anon users with the correct url can still access them

ShadowMonster’s picture

OK i was find my missing point ;)

I used Nodeaccess module and I was forgot add node 'Image' to his rules and turn off default access for anon. Now its work correctly. Now I understand this .htaccess is a solution if we do not want give access by correct url. So for me it was just left to move folder how you was say outside public root folder.

Anyway Thank you Your suggestion was give me some point to find my solution :)