phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Phpgroupware-users] VFS and M$ issues


From: Don Graver (dgraver)
Subject: RE: [Phpgroupware-users] VFS and M$ issues
Date: Wed, 17 Dec 2003 11:55:49 -0000

PROBLEM FOUND!!

Apparantely it had nothing to do with the VFS structure (which is good), 
instead it was mine and M$ faults.  Originally when I added the ability for 
users to attach files to an event, the files would be emailed to all 
participants.  Hence, I had to format the data so that it could be read in via 
an email.  See code below:

$data=rtrim(file_get_contents($event['attach_fupload']['tmp_name'][$key]));
$this->vfs_attachments['data'][$key]=$data;  //This is where my problem was
$data = chunk_split(base64_encode($data));

Mistakenly, or not thinking it would matter, I was rtrim'ing the data and 
passing that to the VFS instead of grabbing the data without the rtrim.  I 
guess Linux (openoffice) knew how to handle this, but not M$.

On a side note regarding the headers, I had to add in "attachment;" to the 
Content-Disposition header to allow IE to open acrobat for pdf files.  
Otherwise, I was just getting an image.  Netscape works with or without the 
"attachment;".

 header("Content-disposition: attachment; filename=".$filename);

P.s.  I just got the sourceforge.net update email and it has egroupware listed 
as ranked #8 and they seem to get about 600 downloads per day.  Just curious 
how many phpgw gets per day.  

-- Don Graver


-----Original Message-----
From: address@hidden 
[mailto:address@hidden 
On Behalf Of Marco Gaiarin
Sent: Wednesday, December 17, 2003 9:57 AM
To: address@hidden
Subject: Re: [Phpgroupware-users] VFS and M$ issues


Mandi! Daryl L. L. Houston
  In chel di` si favelave...

> What kind of headers are you sending? Sending "Cache-Control" and
> "Pragma: no-cache" headers can cause problems with 
downloading in MSIE. 
> Check out 
> 
https://www.redhat.com/support/resources/faqs/stronghold3/browse
r_faq.html 
> for more info.

...how can i control the header i send in phpgw?! Someone have to do some 
patch, or i can fiddle with some config file or something else?!

-- 
dott. Marco Gaiarin                                 GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''                http://www.sv.lnf.it/
  Polo FVG  -  Via della Bontà, 7 - 33078  -  San Vito al Tagliamento (PN)
  gaio(at)sv.lnf.it             tel +39-0434-842711    fax +39-0434-842797

  Linux Day 2003: Terza giornata nazionale di Linux e del Software Libero
            http://www.lilliput.linux.it/ld2003/linuxday.php


_______________________________________________
Phpgroupware-users mailing list
address@hidden http://mail.gnu.org/mailman/listinfo/phpgroupware-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]