Search All Forums
Dart Home | C++ Professional Toolkit | Custom Development Reply | C++ Professional Toolkit Topics | Forums   
AuthorForum: C++ Professional Toolkit
Topic: Uploading files using WebTool

Posts: 2
Member Since: 01/21/02
posted March 13, 2002 1:27 AM

Is there a simple example of uploading a file using the WebTool in VC++6. I have looked at PageFetch and PostDemo and they don't upload files, only form data. I need to include a file in the form as if the end user had put the <input type=file> tag in an html form. I need to have this in C++ not VB. I repeat, in C++ no VB. Please don't point me to a non-existent page.
K M Drake

From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 13, 2002 10:24 AM

Sorry, we do not have a VC++ example of this.  I would have suggested looking at the following post as a starting point:
but the code is in VB, and you explicitly asked me not to.
So I will just say that, generally, you will have to add a multipart request header, and set the Data parameter to a string containing the required multipart message (which you have constructed yourself).

K M Drake
Dart Tech Support
Reply | C++ Professional Toolkit Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX