Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

PHP Download problem...

Options
  • 29-06-2006 12:54pm
    #1
    Registered Users 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