473,320 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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
Nov 20 '05 #1
0 1499

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: brianinbox | last post by:
Hi, I've been trying to upload file using webclient.uploadfile method from my IIS webserver to an Apache webserver without any success. On the Apache server (server that receives the incoming file)...
4
by: brianinbox | last post by:
Hi, I've been trying to upload file using webclient.uploadfile method from my IIS webserver to an Apache webserver without any success. On the Apache server (server that receives the incoming...
1
by: Paw Pedersen | last post by:
I would like to do the same in C# code as a simple html page does with this code: <form action="http://vej-w2k3-psp/sslmodtag/WebForm1.aspx" method="post" ENCTYPE="multipart/form-data"...
0
by: Saverio Tedeschi | last post by:
Hi all gurus, I wrote an Win app with embedded FTP client (well, made some cut and paste from others' projects :-)) to receive and send files from within the app itself. Now the server I connect...
1
by: neoret | last post by:
Hi there. I need to perform an upload of a document using HTTP post. This has to be done from my windows form using C#. My challenge is: 1: To send - the word document 2: To attach several...
0
by: Tim.Geiges | last post by:
I was looking for a simple way to upload a file to a webserver from a standalone C# windows application, I had a lot of trouble finding a simple solution but ran a simple way(note: I have not...
2
by: daav31 | last post by:
Hello, I have the following code: $RecordID = $_POST; $LastModBy= $_POST; // These datetime vars live in globals.php $mySQLToday = $thisYear.'-'.$thisMonth.'-'.$thisDay; // prints...
3
by: rajeeshun | last post by:
Dear all, This is my first post in this forum. I am writing a small module for my company that send XML data to a gateway (Asp page) and get the response in XML format I have to send the...
2
Manikgisl
by: Manikgisl | last post by:
we are trying to upload a file using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Net;
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.