
File Upload Using HTTP Post w/INET Control
I am trying to use the INET control to upload files to my server using the
HTTP Post method. It works fine when posting regular data, but I cannot get
it to work with uploading files.
The form would look like this:
<form NAME="FileUpload" method="POST" enctype="multipart/form-data"
action="http://myserver/Upload.cfm">
<input type="file" name="myfile">
This is what I have tried (and does not work).
sURL = "MyServer.com/FileUpload.cfm"
sValue = "c:\test1.txt"
Inet1.Execute sURL, "Post", sValue, "enctype: multipart/form-data" &
vbCrLf
(This is working against a Cold Fusion cfm file)
Any assistance would be greatly appreciated.