Closed (fixed)
Project:
Flexi Access
Version:
7.x-1.1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2014 at 13:34 UTC
Updated:
16 Apr 2014 at 13:31 UTC
Jump to comment: Most recent
Comments
Comment #1
rudolfbykerIf the file is in Drupal's private storage, and it is an attachment to a node, the node's access permissions will apply to the file.
How did this file end up on your site? If you uploaded it via FTP and the folder/file permissions on the host is set up correctly, then AFAIK nobody will be able to access it.
Comment #2
amanda-kn commentedI created the directory 'private' in 'files'. I then added somefile.pdf via ftp
So you're saying in order to apply access control the file must be uploaded there by drupal itself?
Comment #3
amanda-kn commentedI also changed configuration>file system and made the "Private file system path" = sites/default/files/private and set the default download method to "Private local files served by Drupal."
http://i57.tinypic.com/2z8n7fp.jpg
At the moment no one can access anything in that directory
Comment #4
rudolfbykerYour private files directory is working as it should. Like I said, the default is to deny access to all users.
You need to have the files linked to entities which have access checking, like nodes. I see three possible solutions:
Comment #5
amanda-kn commentedTo be perfectly honest I'm new to drupal, would you know of a Youtube video demonstrating how to do this?
Comment #6
gisleamanda-kn,
I know of no such video.
If you can make do with text, here is a link to a short tutorial about Drupal file attachments that also deals with access control.
As has alreeady stated by fmr, to control access for a specific uploaded file with Flexi Access, you attach the file to a node, and then use Flexi Access to manage access to the node to which the file is attached.
If you want to use ftp (or some other non-Drupal means) to upload files to your Drupal site, then Flexi Access can not be used for access control to files.
Comment #7
gisleThere has been now further feedback from the OP for a week. I hope that means that this support request is cleared up.