1
silver74
pb to download File's attachment with cbb 1.15
  • 2005/11/4 19:23

  • silver74

  • Just popping in

  • Posts: 21

  • Since: 2004/4/2 2


Hello,

When you want to add a file (other than image : zip, doc, etc) to a topic (with permissions of course and files extension added) there is no problem ! The file is uploaded perfectly.
But when you want to download it after by clicking in the download link, the file is downloading but finally is corrumpted !!

Can you help me to patch this probleme

Silver74

2
Marco
Re: pb to download File's attachment with cbb 1.15
  • 2005/11/5 15:09

  • Marco

  • Home away from home

  • Posts: 1256

  • Since: 2004/3/15


it has to deal with these lines

Quote:

if (preg_match("/MSIE ([0-9]\.[0-9]{1,2})/", $HTTP_USER_AGENT)) {
header('Content-Disposition: inline; filename="'.$file_display.'"');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
} else {
header('Content-Disposition: attachment; filename="'.$file_display.'"');
header('Expires: 0');
header('Pragma: no-cache');
}


especially those

Quote:

if (preg_match("/MSIE ([0-9]\.[0-9]{1,2})/", $HTTP_USER_AGENT)) {
header('Content-Disposition: inline; filename="'.$file_display.'"');


Any idea ?
marco
Do synergy or die.

Login

Who's Online

314 user(s) are online (252 user(s) are browsing Support Forums)


Members: 0


Guests: 314


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits