Also posted to the the forum:
http://www.symfony-project.org/forum/index.php/m/43643/#msg_43643

Hello all..

I have implemented the suggestions in this thread... ( I thanked the thread
earlier...)

HOWEVER..

I have an issue that hopefully someone can shed some light on.

I have an IFRAME that is nested in a template.
The IFRAME action is where I have the download code setup. The action writes
header's only as the success.

The issue is that across the board, browser's lock up and will not allow the
site to be navigated by the user while the download is happening. Even,
"right clicking" on a link to open in a new window does not work. The
browser window's all cycle until the download is complete.

Any ideas why this is happening?

  public function executeFrameSongdownload()
  {
        
        $this->filename = 
'uploads/music/'.$this->getRequestParameter('songfile');
        $this->filetype = 'audio/mpeg';
        $this->realname = $this->getRequestParameter('songname');

        $this->getResponse()->clearHttpHeaders();
        
        header("Pragma: public"); // required
        header("Expires: 0");
        header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
        header("Cache-Control: private",false); // required for certain browsers
        header("Content-Type: ".$this->filetype);
        header("Content-Disposition: attachment;
filename=".chr(34).$this->realname.chr(34));
        header("Content-Transfer-Encoding: binary");
        header("Content-Length: ".filesize($this->filename));
        print '\n';
        readfile($this->filename);
        
        return sfView::HEADER_ONLY;
        
  }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to