Click here to Skip to main content
16,013,322 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So before I tell you my specific issue, what I am trying to create is a C# application that will manage user's shared presets for a guitar pedal. So in order to do this, I need the ability to upload files from the user's computer, to my server/hosting.

I could use built in C# libraries to make an ftp connection and upload files to my server, but then my precious information would be exposed and vulnerable to being seen regardless of my attempts to encrypt/obfuscate the code.

So in order to protect my information I want to create a php script to do the uploading, but I need to invoke the php script from my C# application. I can easily make webrequests in C# to php pages, which I am doing now to serve the data from my database, but uploading files to my server is quite different.

Anyone know how I might do this?
Posted

1 solution

You are missing something. What encryption/obfuscation, for goodness sake? If someone posts a file, it can be eavesdropped, but you can use HTTPS to let the user send the data encrypted. I'm not sure if this is your concern. Except for the consideration I explained above, there are simply no options which can compromise your security. In all cases, you use a Web form or Ajax to post the file. In all cases, you have to use some PHP (or any other server-side technology) to accept the post data, including your file. And that is something which happens on the server side and is not exposed to the Internet.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900