I am soon looking at coding a C# Application out of my spare time for a friend of mine, this application will essentially be uploading files from the clients computer to a PHP webscript, using the WebClient Class and its UploadFile Method. I am currently planning out exactly how the script will communicate with the server, and then how it will receive a response containing some information regarding the users upload to the server.
Step 1: User will select file(s) to be uploaded, they will then upload them
Step 2: The program will communicate with a PHP script on our server, which will process through the uploads and upload them to the correct folder
Step 3: The PHP server will then simply respond with a string, array or some sort of response which will be relayed back to the program, this will contain important information, such as;
- Username
- A link
- Date/Time on server uploaded
- An error status
I was thinking the best way to do this was via an array of some sort, however I am lost at this point as I have never really delved into this. I have been told that simply outputting a PHP Array will not do the trick, and I will need to use other means such as JSON or XML. Does anyone have any recommendations for how I should handle the returned data, which I will need to use on the software to display a link and other information such as the date & time(which will actually be in timestamp format).
Cheers,