Page 1 of 1

XmlHttpObject POST/File Upload???

Posted: Mon Oct 10, 2005 3:09 am
by alex.barylski
Is it possible?

I can't find anything on the subject...

I have actually managed to find a solution using ADODB activeX and streaming the binary data of a local file, but sending it as content via textarea behind the scenes...

This approach won't work for me...

Does anyone know of an example? Or lead me in the right direction???

Thanks a billion but again :)

Posted: Mon Oct 10, 2005 2:36 pm
by feyd
the browser will not give you access to the filesystem to read the file without using ActiveX/XPCOM/Java. You can perform a POST though..

Posted: Mon Oct 10, 2005 8:56 pm
by jwalsh
Using POST is pretty standard for any AJAX applications... Here's an example...

http://aleembawany.com/weblog/webdev/00 ... orial.html

The example actually uses GET, but POST works just fine as well.