I'm new to XPCOM but have built a moz app and want it to be able to upload (post) a file to a server using javascript instead of the user having to use an html form. The post will be directed to a PHP page on the server that accepts HTML form file posts. From my reading and research I know I need to use nsIUploadChannel interface, feed it a nsIFile object, but am too new to XPCOM to put it all together.

Can anyone give a newbie a short example of how a file upload is accomplished via javascript?

mawrya
_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to