Download & Extend

Documentation for private store support

Project:Filemanager
Version:master
Component:Documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

System:
-Windows 2000 / XP,
-IIS,
-PHP 4.4,
-MySql 4.1 with UTF support

Situation:
- Private store works only when the 'admin/settings/File system settings/File System Path' is equal with 'admin/settings/filemanager/Private file system path:'.

G.

Comments

#1

What did you put in both pathfiles ?
For me (windows 2000) it works perfectly with
Public file system path: files
Private file system path: files/drupal_private

I add some troubles at the begining because I put some absolute path, and in fact it works like a charm with relative paths. Note : private file system path as to be included inside public system path.
Then it's up to you to prohibit apache browsing the content inside this private directory.

I think there should have a little more help here.

#2

Category:support request» bug report

The documentation definitely needs to be updated to indicate that the private directory needs to be under the files directory. it would also be helpful to say what the ownership and permissions of the directory should be.

#3

private path should not have to be under the public filepath. I'll look into any code that would cause that to be true.

#4

The code that requires it is embedded deep into the includes/file.inc file. It does a check to see that the correct paths are within the drupal files path before moving or copying files.

I had run into this bug myself when I was starting to use private files.

#5

Status:active» fixed

Hmm... I thought I worked around that a long time ago. I have had to recreate the file_move, _copy and _transfer functions as private members which don't include the restriction to the base file directory. The next check to HEAD will resolve this after I finish testing.

#6

Status:fixed» closed (fixed)
nobody click here