o=create("wwFTP") o.FTPConnect("ftp.west-wind.com") o.FTPSendFileEx("/downloads/pkzip.exe","c:\temp\pkzip.exe") o.FTPSendFileEx("/downloads/pkunzip.exe","c:\temp\pkunzip.exe") o.FTPClose()If you need more control over the upload and you need to send additional information along with the upload and need immediate confirmation then typically you can use Web based HTTP uploads. This is the type of thing that Facebook or YouTube or any content provider uses to get data to the server. This requires that the Web Server has some endpoint Url that can accept your files. IOW, something on the server runs some code to accept your files at a URL. The upside to HTTP uploads is that the server has more control over when files are uploaded and you can capture additional information about the upload at the same time of the upload. The server can also provide more information and post processing of the uploaded data.
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)Hope this helps,