Search code examples
iphonecocoahttpserver

saving files to cocoahttpserver in iphone


I need to download a file from an url and save it to local cocoahttpserver I have in my iphone app so that later i can access it using something like http://localhost/filename.txt

I have the cocoahttpserver code. But I am unable to figure out how to save files to it. Any help would be great.

Thanks.


Solution

  • You could configure both your file's download directory and the http server to access your app's Documents directory.