SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict
    Join Date
    Dec 2003
    Location
    South Korea
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cross browser multiple d/l's (using headers)

    i have the following header integrated w/ some some of my variables. It's a common script that uses headers to send out information to download a file:
    PHP Code:
    header "Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); 
    header "Last-Modified: ".gmdate "D, d M Y H:i:s" )."GMT" );
    header "Pragma: no-cache" );
    header "Cache-Control: no-store, no-cache, must-revalidate" );
    header "Cache-Control: post-check=0, pre-check=0"false );
    header "Content-Type: application/download" );
    header "Content-Disposition: attachment; filename=".$download_filename."" ); 
    header "Content-Transfer-Encoding: binary" ); 
    header "Content-Length: ".$download_filesize."" ); 
    now, this works really well with all browsers BUT my problem is this. Lets say im downloading a file using this method and i click the link again to download another file. FOR IE, this works and i can download as many files as i want BUT with other browsers like FIREFOX and NETSCAPE, i can only download one file at a time. While im downloading, if i click to download, it doesn't do anything. However, if im done the download, THEN i can download again. This is a very annoying problem b/c i would like to download multiple files at a time for ALL browsers. I think the problem lies in my headers but im not sure what to change. ANY ANY help is appreciated. Thank you.

  2. #2
    SitePoint Addict
    Join Date
    Dec 2003
    Location
    South Korea
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump. sorry to be doing this but i really need this problem sorted out asap.

  3. #3
    SitePoint Addict
    Join Date
    Dec 2003
    Location
    South Korea
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no one? sorry about the bump again..

  4. #4
    SitePoint Zealot lemkepf's Avatar
    Join Date
    Feb 2002
    Location
    WI, USA
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what version of netscape/firefox are you using?
    Happiness is a belt-fed weapon
    Consciousness: That annoying time between naps.
    Modevia Web Services LLC.

  5. #5
    SitePoint Addict
    Join Date
    Dec 2003
    Location
    South Korea
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the newest ones

  6. #6
    SitePoint Zealot lemkepf's Avatar
    Join Date
    Feb 2002
    Location
    WI, USA
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, not the problem i thought it was. Sorry, can't help ya. Anyone else?
    Happiness is a belt-fed weapon
    Consciousness: That annoying time between naps.
    Modevia Web Services LLC.

  7. #7
    SitePoint Addict
    Join Date
    Dec 2003
    Location
    South Korea
    Posts
    232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm i guess this is a hard problem to solve... anyone else know a solution?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •