Closed (works as designed)
Project:
Node Private File
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2011 at 22:57 UTC
Updated:
10 Jul 2012 at 14:45 UTC
Comments
Comment #1
andreiashu commentedHi,
Very good question/point (I should add it on the project page).
You can definitely use this module with public files setting turned on in Drupal. Actually this is how I created it and how it was tested so far. :)
Regards,
Andrei
Comment #2
carvalhar commentedbut are these files accessible by direct url?
I mean, if i type:
http://example.com/sites/default/files/myprivatefile.pdf
Will I be able to download it, even without permission?
Anonymous users are checked also?
Thanks
Comment #3
carvalhar commentedHi,
I checked right now.
As anonymous user i got 403 error (denied access) for direct download of:
http://localhost/sites/default/files/myprivatefile.jpg
This modules generates a url for users who have permission, like this:
http://localhost/private/6/field-test/myprivatefile.jpg
And i couldn't download as anonymous, but i could as a user who has permission.
So it's working good with node access ;)
Comment #4
andreiashu commentedHi Carvalhar,
Yes, you are right, so basically the way this module works is by node access permissions: if one has access to a node (as authenticated or anonymous) it will have access to the attached files of that node as well. If not, then one should get an access denied. Otherwise this is a bug :)
So, did I understand correctly that everything is working fine for you now?
Cheers,
Andrei
Comment #5
charlie-s commented@carvalhar - You don't find that in your situation all files in /files/ are being restricted for anonymous users?
Comment #5.0
charlie-s commentedtypo