On Tue, Oct 18, 2011 at 3:28 PM, John Spackman <[email protected]>wrote:
> The progress bar should work fine – it's just the encoding that's changed,
> not the means of uploading. An octet-stream is just the binary file,
> multipart/form-data just wraps that same binary data with some MIME cruft;
> in FF4+, Chrome7+, that wrapping is done by the browser and in older browser
> versions it's done by Javascript in the com.zenesis.qx.upload.XhrHandler.
> In browser's which cannot handle uploading with XmlHttpRequest() it falls
> back to using a <form> tag which is also multipart/form-data and that's the
> only time we cannot get feedback on the upload progress.
>
Yeah. In fact, there is some hack to be able to have a progress bar when
using multipart/form-data (see php/pecl upload module), which is making xhr
request in parallele to the file upload just to check information related to
the upload progression server side.
The idea i have in mind personaly :
* have a config option to force fall back to use a <form> tag in uploadmnrg
plugin
* test node-formidable (i bookmarked this node module just yesterday ;) )
* provide server side node source code to handle octet-stream method
* provide server side node source code to handle multipart/form-data method
* provide poc to handle a progress bar using multipart/form-data (but using
node server side)
>
> It would be pretty easy to reinstate octet-stream, but that would only work
> for some browsers - i.e. if you used it, the server would have to always
> support application/octet-stream _and_ multipart/form-data because we can't
> make IE send anything else.
>
> So a better solution would be to find a multipart parser for node.js
> implementation; I figure this has to be something that'll be supported "real
> soon" if it's not already, and I found this code:
> https://github.com/felixge/node-formidable
>
> The read me says it's "has been battle-tested against hundreds of GB of
> file uploads from a large variety of clients and is considered
> production-ready". Perhaps you could try it and let us know how you get on?
>
>
I will !
Cheers and thanks again for this module !
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel