Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
West Wind Internet Client Tools
Message
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Miscellaneous
Thread ID:
00856388
Message ID:
00856530
Views:
55
Is this from a VFP app?

Yes you can upload files with the wwHTTP class. It takes only a few lines of code:
oHTTP = CREATEOBJECT("wwHTTP")

*** Set mode to multi-part form
oHTTP.nHttpPostMode = 2

*** Post a file and a regular form variable
oHttp.AddPostKey("File","d:\temp\wws_invoice.pdf",.T.)
oHttp.AddPostKey("txtFileNotes","test note")

lcHTML = oHTTP.HTTPGet("http://localhost/wconnect/FileUpload.wwd")

*** Display result from server
ShowHTML(lcHTML)
This code is equivalent to posting a multi-part form with a file upload button in the Web browser.

+++ Rick ---


>I have a client that has a problem with upload attachements.
>FTP or SMTP os not an option
>
>Here was my thought....
>
>Build a URL and Pass the information such as eMailTo and From and subject and the File Name and Directory.
>
>Then like in a Web eMail Browser you can attach files and they are uploaded. This works through a router so I should not have problems wih it.
>
>The Web Designer uses cold fusion so I can pass the information to him but to get the file to upload he needs this sent
>
>enctype="multipart/form-data"
>
>and he cant get it to work.
>
>My thought was to do it in html pass the parameters and then somehow click attach/send button via WW tools.
>
>So my question is is it possible to click the button with the West Wind Client tools?
>
>TIA,
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform