On Thu, Oct 15, 2009 at 13:15, Andy Fuchs <a...@elgato.com> wrote:

> concerning qooxdoo 0.8.2
>
> I need to upload a file using a POST request and I am a little confused
> with
> the various documentation (i.e. documentation to AJAX on the qooxdop site
> states:'Parameters are currently always sent using GET, even if you select
> POST'. Somwhere else I read that only text-files are supported (but I want
> to transfer .tar/.zip files).
>

Yes, if you use the setParameters method in qx.io.remote.Request, those
parameters will aways be sent in the URL. To send POST data in the body, use
the setData() (I think; I don't have qooxdoo code available at the moment)
method. You can also use setFormFields(), which will invoke the IFrame
Transport.

>
> Now my question is: What's the RECOMMENDED way to upload files using POST
> requests?
>

As you've discovered, there is a contrib UploadWidget which can be used for
this.

Cheers,

Derrell
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to