[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-developers] Question for the Pros
From: |
Jason Wies |
Subject: |
Re: [Phpgroupware-developers] Question for the Pros |
Date: |
Wed, 28 Nov 2001 22:24:30 -0500 |
User-agent: |
Mutt/1.2.5i |
On Tue, Nov 27, 2001 at 11:32:47PM +0000, Joel Webb wrote:
> Tony,
>
> Thanks, My real problem isn't with uploading attachments - it's downloading
> them. I
> am getting an error message from Internet Explorer but not from Mozilla.
I think Tony might have been on to something saying that specifying
"application/octet-stream" will cause the browser to download the file. You
might try this patch (CVS) and see what happens:
--- email/get_attach.php.old Wed Nov 28 21:53:23 2001
+++ email/get_attach.php Wed Nov 28 21:53:32 2001
@@ -29 +29 @@
-
$GLOBALS['phpgw']->browser->content_header($GLOBALS['phpgw']->msg->args['name'],$mime);
+
$GLOBALS['phpgw']->browser->content_header($GLOBALS['phpgw']->msg->args['name']);
> Tony (Angles) Puglisi (address@hidden) wrote*:
> >
> >Joel Webb (address@hidden) wrote*:
> >>
> >>I am pretty sure the code is right. I guess my real question is:
> >>
> >>1. What is the purpose of /files in the phpGW config and where should this
> >>be
> >>located at?
> >>
> >>2. Does this have to be located on the root directory like the config
> >>suggests?
If you're using 0.9.12, see the report here (should also be in the FAQ for
0.9.12-1 already):
https://sourceforge.net/tracker/index.php?func=detail&aid=429425&group_id=7305&atid=107305
I think in 0.9.12, and definitely in CVS, the path in setup is NOT relative to
your phpGroupWare installation directory. /files means /files. The reason for
this is that files in the web root are publicly accessible, which is not
desirable in most situations.
> >>3. What permissions does the directory need?
It needs to be writable by the web server, so as root run
mkdir /path/to/files/home
chown -R nobody:nogroup /path/to/files
chmod -R 660 /path/to/files
where nobody and nogroup are the user and group the webserver run as. When we
package up 0.9.14, we should include a files directory with a home directory
already in it, so the admin can easily copy it somewhere else.
> >1) I still think you should look at: /email/doc/FAQ.txt
> >It deals some with this, because when you attach a file to an email, that
> >file gets
> >uploaded to the location you are asking about.
> >
> >I think this "files" location was first used by the old filemanager, and
> >then as a
> >place to upload attachments for outgoing emails.
It should be used both as storage for outgoing attachments and as a place to
store received attachments to be viewed on the server. It should not be used
as temporary storage for uploaded attachments that will never be needed again;
we should use the system temporary directory for that, or have it as a separate
admin option.
> >Now, I understand we are going to have a "virtual filesystem" that resides
> >in the
> >database (is this correct?) whence it will be easier for people to save
> >attachments
> >to this "virtual" location, and probably deal with security issues too (???)
The VFS is there and well documented (and designed I hope), complete with
database support. Developer docs are in phpgwapi/doc/vfs. I'm sure glad I
documented it when it was fresh in my mind.
Jason Wies aka Zone
- [Phpgroupware-developers] Question for the Pros, Joel Webb, 2001/11/27
- Re: [Phpgroupware-developers] Question for the Pros, Chris Weiss, 2001/11/27
- Re: [Phpgroupware-developers] Question for the Pros, Tony (Angles) Puglisi, 2001/11/27
- Re: [Phpgroupware-developers] Question for the Pros, Joel Webb, 2001/11/27
- Re: [Phpgroupware-developers] Question for the Pros, Tony (Angles) Puglisi, 2001/11/27
- Re: [Phpgroupware-developers] Question for the Pros, Joel Webb, 2001/11/27
- Re: [Phpgroupware-developers] Question for the Pros,
Jason Wies <=