Posted by nertskull on June 3, 2012 at 2:21pm
I have a website that is access controlled. So only people logging in can see the content. Which usually works fine.
But now I'm trying to upload a picture, and it shows up as a broken link when I upload it using a wysiwyg (CKeditor). It puts it into my sites/default/files/private_files/blog_pictures directory. But it can't be accessed.
If I put the picture somewhere else, like sites/default/files/blog_pictures. Then I can access them. But so can anyone on the web. I want them in the private_files directory (that I set up in the "File Types" in the configuration).
What have I don't wrong? Why can't I put a link/upload files in my "body" field and have them show up?
Comments
Hi, First check whether the
Hi,
First check whether the default download method is set to public in Configuration->Media->File System.
Also check the settings in Ckeditor, and change the location or folder where the files are stored by ckeditor while uploading.
Also you can refer this Working with Files
Drupal Developer & Themer.
Skype me on : mak_chavan
Email : Makarand Chavan
The default download method
The default download method is "Private local files served by Drupal".
But don't I want that? Because it says on that page that the use of public files "does not provide any access control".
I definitely don't want non-logged in people to be able to see the pictures.
But I tried anyway, and changed it to the public option, and I still get the same problem. They still don't show up when added to the body of the post as a direct link to the file.
And I've read the working with files section like 4 times, and I must be dense. Because I can't find anything that is solving my problem.