[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[MSXML3] using file upload via XMLHTTP

  • From: Adam Van Den Hoven <Adam.Hoven@b...>
  • To: "XML Development Mailing List (E-mail)" <xml-dev@l...>
  • Date: Mon, 30 Jul 2001 12:41:30 -0700

upload xml
I have an interesting problem.

We're building an IE5.x based UI that needs to upload images to our server
(among other things). Typically one would use the file upload element to do
this. However, we want to use XMLHTTP as the only route by which data is
transfered between the browser and the server. How would one do the file
upload? The server side code we have done many times. Its just the client
code that has us worried.

My first thought is to do the following:
function uploadImage(){
	...
	objXMLHTTP.open("POST", "http://someurl/uploadimg.asp", False);
	objXMLHTTP.send(document.all.myform);
	...
}
but the common wisdom around here is that it won't work. The code came out
of my head so I may have some syntax errors in there somewhere but its the
idea of sending the request passing the form object that I'm interested in.

Any other ideas would be appreciated. 

Adam van den Hoven
Internet Software Developer
Blue Zone
tel. 604 685 4310 ext. 260
fax 604 685 4391

> Blue Zone makes you interactive. http://www.bluezone.net/
> 
> 
> 

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.