Download and upload via ftp from iPhone SDK

Can someone explain to me the process of downloading and uploading the form and ftp server from the iPhone SDK. If you can just point me in the right direction (e.g. documentation, etc.). How difficult is this task?

Thanks in advance.

+6
iphone
source share
5 answers

Apple's documentation will provide much more information in general than I could. Take a look:

http://developer.apple.com/iphone/library/documentation/Networking/Conceptual/CFNetwork/CFFTPTasks/CFFTPTasks.html#//apple_ref/doc/uid/TP30001132-CH9-SW1

which contains information about the required FTP information. If you prefer a PDF with all the network information in it, check out:

http://developer.apple.com/iphone/library/documentation/Networking/Conceptual/CFNetwork/CFNetwork.pdf

Chapter 5 will be of particular interest to you in this. Both details work with FTP sites, including uploading, uploading, extracting directories, etc.

+2
source share

You can use this . It supports all basic ftp operations:

Download file Upload file Delete file Delete directory Create directory List directory contents 

[DISCLAIMER] I am a library developer, I needed the ftp library in the past, and I came up with this answer. However, I decided to write it myself, because s7ftprequest did not support at that moment several operations that I needed (for example, a download directory or a list)

+3
source share
+3
source share

s7ftprequest is only for uploading files to FTP.

Below is sample code from apple

http://developer.apple.com/library/ios/#samplecode/SimpleFTPSample/Introduction/Intro.html

Limitations:

  • FTPS (i.e. FTP over TLS)
  • delete items
  • rename items
  • other less common FTP commands
  • custom ftp commands
+2
source share

I ended up using GoldRacoon. It turns out that in iOS / objc land, BlackRaccoon, as the original lib FTP client, then WhiteRaccoon was forked from this, and then GoldRacoon was forked from WhiteRaccoon (I think)

 pod search GoldRaccoon 

... will show you.

As a result, I made a few changes (in my own fork) so that you can successfully use Block and failBlock in any request, so block-y callers (like my classes) do not have additional work to manage delegate callbacks. Github link (my fork): https://github.com/xaphod/GoldRaccoon

0
source share

All Articles