C# Use WebClient.UploadFile(string, string) to upload to a Apache & PHP webserver
The C# WebClient.UploadFile(string, string) sample on MSDN shows how to make it work with an ASPX page handling the upload. However I have a Apache server with PHP set up to handle my subversion repos. I have very little web programming knowledge, but would like to know...
Can my Apache/PHP web server handle a file from a c# client using WebC开发者_StackOverflowlient.UploadFile() and can someone give me a small example of what to do...
I know it's a n00b request, but any help would be appreciated
The section of the PHP documentation on handling file uploads is what you are looking for.
The mechanism for handling file uploads over HTTP is standardized in RFC1867, so it doesn't matter whether you use .NET or another type of client, they will all do adhere to the protocol.
精彩评论