Zubrag.com
May 20, 2012, 11:51:36 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Firefox and IE downloading the files inside the browser instead of a save dialog  (Read 2568 times)
zoparrat
Newbie
*
Posts: 1


« on: November 12, 2007, 02:01:02 am »

I tried using the script with:
/download.php?f=postgre_oct10_2007.backup&fc=postgre_oct10_2007.backup

I've added 'backup' => 'application/octet-stream' to download.php
I also tried with 'backup' => ''
I even tried doing the same using a .zip file. No matter what I try, firefox and IE try to load the files inside the browser, displaying corrupted letters etc.

What might I be doing wrong ?

Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #1 on: November 12, 2007, 07:26:30 am »

It shows download box for me in both Firefox and IE. I tried

$allowed_ext = array (
  'backup' => ''
);

and

$allowed_ext = array (
  'backup' => 'application/octet-stream'
);

Maybe following would work for you

$allowed_ext = array (
  'backup' => 'application/force-download'
);
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC