Hi list,

sorry for bothering (2nd question in during of 2 days), but I can not 
figure out, how to force browser will offer saving of file sended by 
server as attachment.

Request is caused by

        new qx.io.remote.Request(url, 'GET', 'text/plain').send();

and code for response in backend (PHP) is

        header('Content-type: text/plain; charset=utf-8');
        header('Content-disposition: attachment; filename="test.txt"');
        readfile('test.txt');
        exit;

I can see correct content of this file in FireBug console off course and 
relevant headers are:

        Transfer-Encoding: chunked
        X-Powered-By: PHP/4.4.4
        P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
        Content-Type: text/plain;charset=utf-8
        content-disposition: attachment; filename="test.txt"
        Server: lighttpd/1.4.13


Is here anyone who can see some mistake in above code, please?

Or it is juts not possible and I have to use nativewindow or iframe?

Many thanks.

Lumir

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to