The problem was solved when I used an ordinary form instead of AJAX
one.
On Aug 11, 4:04 pm, juzek wrote:
> //content-disposition, attachement// sets only filename under which
> the file will be saved from the browser.
> it doesn't send the file to the browser , in fact.
>
> Try using
>
> $this
//content-disposition, attachement// sets only filename under which
the file will be saved from the browser.
it doesn't send the file to the browser , in fact.
Try using
$this->renderText('sample text from the file')
after setting the headers.
that text will be send as a file to the browser.
On Mon, 10 Aug 2009, Sumedh wrote:
> We are trying to download a file in Symfony 1.0 action...
>
> But it just returns the content as text in the HTTP response and the
> file-save dialog of the browser doesn't appear at all... :(
Im assuming you switch off the layout too when sending the file?
One more thing to add...
We are trying this through an AJAX action...
could that be a problem?
On Aug 10, 4:13 pm, Sumedh wrote:
> Hi Friends,
>
> We are trying to download a file in Symfony 1.0 action...
>
> But it just returns the content as text in the HTTP response and the
> file-save dial