Documentation for private store support

gnagypal - July 25, 2005 - 11:15
Project:Filemanager
Version:HEAD
Component:Documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

tostinni - August 3, 2005 - 14:08

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

moscow-tyger - October 26, 2005 - 19:32
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

ccourtne - October 28, 2005 - 22:22

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

vhmauery - November 18, 2005 - 17:40

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

ccourtne - February 16, 2006 - 03:22
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

Anonymous - March 2, 2006 - 03:31
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.