I can't figure out how to make access to files uploaded using Media Manger private.
Sitewide, the download method is: Private
In Media settings:
I checked: Allow Private Storage
The public media directory is: files/media
The private media directory is: files/private
Yet, when I click on "node/add/media_document" and upload file, it is uploaded to: files/media.
What do I need to do to make these uploads "private"?
Thanks!
Comments
Comment #1
somebodysysop commentedJust for the record, for others who may be wondering about it, this is my short term resolution for making all the media files attached to media_document nodes private (i.e., requires access to node):
1. Place .htaccess file in files/media directory to prevent outside browser access.
2. Created my own mechanism for accessing the file uploaded into a media_document:
then
3. I use computed_field module to define a link to the file access url in my media_document nodes:
Now, only users who can access the media_document node can access the file attached to it. Period.
Would be nice, however, to have some solution from within mmedia_nodes.module. But, I am happy for the moment.
Comment #2
rhys commentedI'm looking into this problem, since it's supposed to be part of the mmedia module itself. However, I haven't really tested the entire section that allows the private files. It'll be a little while before I can get to really looking into this.
Comment #3
somebodysysop commentedWell, I've resolved my immediate problem, so no rush. But, it would be nice when you get a chance.
Comment #4
rhys commentedI'm not going to be fixing this, due to the version 6 of Drupal going out of support once d8 comes out.