Hi, I need to have some mechanism to backup and restore some data files from my iphone app, to let my users save their data and restore it at a later point. The best way I have found to do this is through making my own web server in the app, following Erica Sadun's example from the iPhone Developer's cookbook. BUT the example doesn't show any way to upload a file to the phone's web server itself. Anyone have an idea on how to handle this?
On a normal web server, I would expect to implement a form with an action=foo.cgi or something similar. But I don't think I can run such a script in an iphone app. So how do I handle the user selecting a file in a browser and uploading the file, and the app running the web server handling it properly and handing it off to it's own method.
Thanks.