[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Phpgroupware-developers] Best way to store files
From: |
Don Graver (dgraver) |
Subject: |
RE: [Phpgroupware-developers] Best way to store files |
Date: |
Tue, 21 Oct 2003 10:07:03 +0100 |
Apparantely using the VFS is the best way to do this. I will look into
the docs. Thanks for the help.
-- Don Graver
-----Original Message-----
From: Dave Hall [mailto:address@hidden
Sent: Tuesday, October 21, 2003 10:49 AM
To: address@hidden
Subject: Re: [Phpgroupware-developers] Best way to store files
"Don Graver (dgraver)" <address@hidden> wrote:
> I am about to try and allow users to attach files to specific
> events and
> am wondering the best way to store the files. Should I just
> create a
> directory structure or store the files as binary in a mysql table.
> I
> read this article(http://php.dreamwerx.net/forums/viewtopic.php?t=6)
> that seems to have some good ideas for the mysql way, but wanted
> to get
> the opinion of the group first. Thanks for the advice.
>
The safest and most secure way is to use the phpgw vfs class. Look at
infolog for an example of app specific file storage.
I always encourage people to use the api, instead of duplicating the
functionality. :)
The vfs is reasonably well documented inline and in
/path/to/phpgroupware/phpgwapi/doc/vfs
Cheers
Dave