Hi Benjamin
>I founded that the data of the uploader event has a property called
>response.
>I assume it's the text of the response.
Yes
>But what if the response is a file that i want to open in my browser??
>When i need to open a file in a new window usaly, it do something like
>this
>window.open("_black","url")...
>
>But here i need to send a file, and to treat the response as a file to
>open in a new window.
>
>Do you have an idea on how we can achieve this??
>
The only way to achieve this is to calculate the URL of the file (or get
the server to return it) and call window.open and pass the URL. This is a
restriction of web browsers in general - the only way they will download a
file is if the browser initiates the download.
If the file is an image you could possibly get the server to return the
image as a data URI, and you would be able to use that as the src for an
IMG tag for example.
John
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel