MyBB Community Forums

Full Version: C# Upload File to Server?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can someone please explain to me how can I upload a file to my server with C#, or point me to a clear tutorial on it? I know it's possible, but the examples I've read either throw errors in my IDE, or I don't understand at all.

To clarify, how can I upload a file from (for example) C:\wamp\www\test to http://www.example.com/uploads? Is it possible to do this without a username or password involved (ie FTP credentials)? I've read it's possible to decompile .exe files, so I'd prefer not to hand out FTP details to any old joe.

I'm using MS Visual C# 2010 Express.
you could set up an ftp user to specific folder with write only access (not read or execute).

Don't know C# though so can't really help there.