Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

PHP Download problem...

  • 29-06-2006 12:54PM
    #1
    Registered Users, Registered Users 2 Posts: 3,594 ✭✭✭


    PHP problem ...
    secure download script ...
    http://localhost/getfile/?DFID=253&filename=/BOB-1.1-11.zip
    

    Which sets up a file for download that isn't available publicly ...

    Now my problem is IE wants to rename that file to ...
    BOB-1[1].1-11.zip
    

    My script is sending the following headers ...
      header( 'Pragma: ' );
      header( 'Cache-Control: ' );
      header( 'Content-Length: $contentLength' );
      header( 'Content-Type: $mimeType' );
      header( 'Content-Disposition: attachment; filename="'.$filename.'"' );
    

    Anyone got any ideas ? :)
    I know its an issue with IE wanting to change the version of the filename due to the numbers in the filename ... and no changing the filename isn't an option :)
    cheers


Advertisement
Advertisement