[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-developers] Best way to store files
From: |
Dave Hall |
Subject: |
Re: [Phpgroupware-developers] Best way to store files |
Date: |
Tue, 21 Oct 2003 18:48:38 +1000 |
"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
dave.hall.vcf
Description: Card for <dave.hall@mbox.com.au>