Since I don't see any complaints/requests related to this, I am opening this as a support request. I am really sorry to bother with questions and I have extensively searched about the issue prior to posting. So here it goes. The module works perfectly for me, except for one detail: no matter which private folders I open/allow, anonymous users never get access to see the images in those folders. Things work fine for any logged in user. They are allowed to see the images, but anonymous users never get to see them. I have tried opening the folder to 'Unauthenticated users' group. I have also turned on the by-user checks. Then I have picked the anonymous user... But that won't work either. Images are still unavailable to the anonymous user.
On the Drupal permissions tab, if I change tthe permissions to 'bypass' checks for anonymous users, then it works. But then the module is made ineffective...
I am using module version 2.3. My Drupal version is 7.22. Any help is appreciated, thank you!
Comments
Comment #1
zanonmark CreditAttribution: zanonmark commentedHi and thanks for writing.
Could you please tell me the folder paths you entered?
Marco
Comment #2
mabho CreditAttribution: mabho commentedMarco,
This is basically what I am trying to achieve: I want to secure the original images uploaded into the website, while providing smaller image samples of the original uploaded image files.
My original images are sitting under the private://images/ folder so that they can be achieved, let's say, inside private://images/something/something_again/0001.jpg...
The large styled versions of the images created from the original version are in a place like private://styles/large folder so that they can be achieved, let's say, inside private://images/styles/large/private/something/something_agian/0001.jpg...
I have thus created two folders in the Private files download permission system (admin/config/media/private-files-download-permission):
Any authenticated users can see the image styles, but anonymous users can't...
Thank you!
Comment #3
tomasribes CreditAttribution: tomasribes commentedI have the same problem!
I create a own Gallery Entity with Entity API that stores images in private folder ('../private', owned by apache).
There are four image destinations:
I want to give access to ALL styles images for ALL users.
Original size images can be downloaded by some roles using Bypass permission and it works!
Style images may be viewed by all users and I create three 'Private files download permissions directory:
The directory have access for anonymous user.
I tried to solve the problem debugging the 'hook_file_download' from 'private_files_download_permission.module' and it seems to work fine.
The problem appears when system launch the hook with original files (I'm not sure if it do this for styles generation). If I add '/fashion_show' to directory permission for anonymous user, it works!
Solutions please!!!
Comment #4
Lukáš Ličko CreditAttribution: Lukáš Ličko commentedAny update for this? This is big problem for me...
Comment #5
Lukáš Ličko CreditAttribution: Lukáš Ličko commentedComment #6
zanonmark CreditAttribution: zanonmark commentedHi all, and sorry for being late at answering.
I really have no clue. It seems to me that the module is working, and your comments seem to confirm that.
Could this be related to https://drupal.org/node/2156071? Are you experiencing problems with images *only*?
Thanks,
Marco
Comment #7
zanonmark CreditAttribution: zanonmark commentedComment #8
Lukáš Ličko CreditAttribution: Lukáš Ličko commentedzanonmark,
Yes, I have problem only with images. I think that https://drupal.org/node/2156071 with my problem not be related.
Problem is well described in #2 and #3 post.
Comment #9
zanonmark CreditAttribution: zanonmark commentedHi and sorry for the late reply,
it seems to me that my module is working as expected, i.e.: it does what it should.
However, I myself ran into a problem similar to the one you reported, a few weeks ago, when creating my new website. And I remember reading something on the web - and on drupal.org specifically - about a lot of issues when using image styles and the private filesystem download method.
I'm sorry I can't be more precise, but I don't remember the links right now. But you may find these one interesting: https://www.drupal.org/node/1440312.
Thanks,
Marco
Comment #10
skinio CreditAttribution: skinio commentedSorry for mining old post but I have this problem too.
I want to disallow access to orginal images and allow access to image styles folder only.
I debuged access to images and the problem is that generating image style use uri - wich is the original folder private://folder that's why this folder should have access.
So this module works but not for images styles.
If anyone solve this issue with other way, please send me solution. Thx.