Search code examples
phpobjective-ccocoaapacheosx-snow-leopard

How do I upload a plist file to my server and do I have to do anything special on the server-side?


How do I upload a plist file from my desktop app to my server? Is there anything special I have to do on the server-side to handle this? I have a linux server running Apache with PHP. Once I have the file uploaded, I'm going to use the pList file to supply data to an iPhone app.


Solution

  • One of the ways is to upload it using a POST to the server. When you add files i found ASIHTTPRequest to be very nice. Anything you need to upload is on this page.

    On the server side it will arrive in the $FILES array (this is for PHP).