通过AFNetworking将多个文件上传到FTP [英] Uploading multiple files to FTP via AFNetworking

查看:180
本文介绍了通过AFNetworking将多个文件上传到FTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我是新来的Objective-C和编程),我试图了解如何下载/上传多个文件到FTP。我从SimpleFTPSample开始,但每个人都说,使用AFNetworking要简单得多,所以我如何使用AFNetworking将2个txt文件上传到FTP。我只找到关于发送到http的信息。感谢您的帮助!

解决方案

问题是,基本上你不能。

AFNetworking仅仅是HTTP(S) - 不支持FTP。从名称上看并不明显,但如果您在这里查看: https://github.com/AFNetworking/AFNetworking#overview它变得非常清晰。



所以你可能不得不使用SimpleFTPSample或者检查: https://github.com/nkreipke/FTPManager


So i'm new to objective-c and programming at all ), and i'm trying to understand how to download/upload multiple files to FTP. I started with SimpleFTPSample, but everybody says, that using AFNetworking is much simplier, so how i can upload 2 txt files to FTP using AFNetworking. I found only information about sending to http. Thanks for any help!

解决方案

The problem is, basically you can't.

AFNetworking is pretty much HTTP(S) only - no support for FTP. It's not apparent from the name, but if you look over here: https://github.com/AFNetworking/AFNetworking#overview it gets pretty clear.

So you might have to use SimpleFTPSample or check this: https://github.com/nkreipke/FTPManager

这篇关于通过AFNetworking将多个文件上传到FTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆