Hello
I want to implement file transfer in a bunch of C # and PHP.
Client-side function:
public void Upload()
{
string uriString = "http://127.0.0.1/upload.php";
WebClient myWebClient = new WebClient();
myWebClient.Headers.Add("Content-Type"...
I have a C# script that uploads an image to my webserver with PHP here:
C#:
WebClient Client = new WebClient();
Client.Headers.Add("Content-Type", "binary/octet-stream");
byte[] result = Client.UploadFile("https://example.com/test.php", "POST", @"C:\mario.jpg");
string s =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.