File Upload Using HTTP Post w/INET Control 
Author Message
 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.



Tue, 21 May 2002 03:00:00 GMT  
 File Upload Using HTTP Post w/INET Control
If you are working with a form there is an example in the vb help under
Internet Transfer Control. It shows how to use the iNet StateChanged event to
trigger getting the data with the GetChunk method.

yabba
--
yabbadoo bigfoot com


Quote:

>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.



Sun, 11 Aug 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. inet http post file upload problem

2. Uploading a file using Inet control with HTTP

3. Uploading a file using Inet control with HTTP

4. HTTP file upload using inet control

5. Uploading a file using Inet control with HTTP

6. File upload from VB 6 to ASP file using http form post

7. VB ActiveX to upload a file using HTTP Post

8. VB ActiveX to upload a file using HTTP Post

9. Uploading File with HTTP POST useing the VB5.0(sp3) internet transfer Control

10. INET Control, File Upload with POST Method

11. Datei Upload per HTTP / File upload via HTTP

12. Uploading File with HTTP POST

 

 
Powered by phpBB® Forum Software