Check your headers with LiveHTTPheaders or something similar: do you
also send a content-disposition: attachment one? That's what triggers
the save as dialog. If you do, change it to inline and it should fix
it.

On Mon, May 25, 2009 at 10:09, santail <nikolai.muh...@gmail.com> wrote:
>
> There is action with next code:
>
> public function executeUpload(sfWebRequest $request)
> {
>    $this->getResponse()->setHttpHeader('Content-Type','application/
> json; charset=utf-8');
>    $json = array('success' => true);
>    return $this->renderText(json_encode($json));
> }
>
> Browser promts "Save file dialog" instead of JSON-style response after
> action execution. What is the problem ? Action is called after file
> upload.
> >
>

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

Reply via email to