在iOS中将多个图像上传到FTP服务器 [英] Upload multiple images to FTP server in iOS

查看:253
本文介绍了在iOS中将多个图像上传到FTP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Swift 4开发应用程序.在其中,我想将多个图像上传到FTP服务器.我尝试使用 https://github.com/Constantine-Fry/rebekka ,但是无法建立错误提示 Xcode 9不支持构建或迁移Swift 2.x目标.

I'm developing an application in swift 4. In it, I want to upload multiple images to FTP server. I have tried to do with https://github.com/Constantine-Fry/rebekka but could not build getting error saying Xcode 9 does not support building or migrating Swift 2.x targets.

还尝试了 https://gist.github.com/Nirma/fb9991be776107d17fdcd6ed2aa02876 .但是不推荐使用某些API. Apple示例项目在目标C中.在这种情况下,有人可以帮助我前进吗?

Also tried with https://gist.github.com/Nirma/fb9991be776107d17fdcd6ed2aa02876 . But some of the APIs are deprecated. Apple sample project is in objective C. Can anybody please help me to go forward in this case?

推荐答案

我已经实现了FilesProvider库,以抽象FTP/FTPS,WebDAV,Dropbox和OneDrive,并提供类似于API的高级c0来处理这些问题.

I've implemented FilesProvider library to abstract FTP/FTPS, WebDAV, Dropbox and OneDrive and providing a high level, FileManager like API to deal with these.

您可以使用 FilesProvider 库处理FTP.它不使用已弃用的CFWriteStreamCreateWithFTPURL API,并从头开始实现FTP协议.

You can use FilesProvider library to deal with FTP. It doesn't use deprecated CFWriteStreamCreateWithFTPURL API and implements FTP protocol from scratch.

使用前请阅读自述文件.您可以在此处看到针对iOS的示例实现.

Please read Readme before using. You can see a sample implementation for iOS here.

这篇关于在iOS中将多个图像上传到FTP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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