views:

179

answers:

2

Hi all! I wish upload a file into my iphone app via ftp ( wifi connection on iphone) like some program as airsharing or iFiles..

which are the first steps to do this??

thanks in advance

A: 

You would begin by creating an FTP server in your application.

Yann Ramin
+1  A: 

The iPhone SDK does not have a built-in FTP server, so you will have to implement a simple FTP server yourself.

First, get an overview of the FTP protocol on Wikipedia. Read the actual RFCs, which document the protocol, in the 'Further Reading' section. Some of the external links are helpful for understanding the flow of an FTP transfer.

Next, brush up on iPhone socket communication. The Apple documentation for CFSocket is a good starting point. Consider using the AsyncSocket library to ease implementation.

Tom S
thanks! I'll try... and are there some other way to put a file into the app using the wifi?
ghiboz