Uploading and downloading via ftp with iPhone SDK

后端 未结 5 879

Could anybody explain to me the process of uploading to and downloading form and ftp server with the iPhone SDK. If you could just point me in the right direction (e.g. docu

相关标签:
5条回答
  • 2020-11-28 11:30

    Try this Simple FTP Download

    0 讨论(0)
  • 2020-11-28 11:30

    s7ftprequest only for uploading files to FTP.

    The below is sample code from apple

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

    Limitations:

    • FTPS (that is, FTP over TLS)
    • deleting items
    • renaming items
    • other less common FTP commands
    • custom FTP commands
    0 讨论(0)
  • 2020-11-28 11:34

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

    pod search GoldRaccoon
    

    ... will show you.

    I ended up making a few changes (in my own fork) so that you can pass in a successBlock & failBlock into any request, so that block-y callers (like my classes) don't have extra work to manage the delegate callbacks. Github link (my fork): https://github.com/xaphod/GoldRaccoon

    0 讨论(0)
  • 2020-11-28 11:36

    The Apple documentation will provide far more info in general than I could. Have a look at:

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

    which details the FTP information you need. If you prefer a PDF with all the networking info in it, have a look at:

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

    In this, you'll be particularly interested in Chapter 5. Both detail working with FTP sites, including uploading, downloading, retrieving directory listings, etc.

    0 讨论(0)
  • 2020-11-28 11:40

    You can use this. It support all the basic ftp operations:

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

    [DISCLAIMER] I am the developer of the library, I needed a ftp library too in the past and came over this answer. However, I decided to write one myself because s7ftprequest didn't support at that point several operations that I needed.(like download or list directory)

    0 讨论(0)
提交回复
热议问题