XmlHttpObject POST/File Upload???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

XmlHttpObject POST/File Upload???

Post 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 :)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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..
User avatar
jwalsh
Forum Contributor
Posts: 202
Joined: Sat Jan 03, 2004 4:55 pm
Location: Cleveland, OH

Post 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.
Post Reply