HTTP post using WebClient UploadFile: what is the name of the variable posted???

S

s

Hi,

I am writting a winform application to post files to a web page (php). The
code doing the upload is:

Dim myWebClient As New System.Net.WebClient

Dim responseArray As Byte() =
myWebClient.UploadFile(http://mysite/upload/upload.php, "POST",
"c:\temp\test2.dat")

TextBox1.Text = Encoding.ASCII.GetString(responseArray)

===================================

However, this does not work server side at I don't know which variable is
used to get the file on the php page, and I need to reference the variable
by its name. I tried "file" but this does not work...

Thanks,

Seb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top