Upload multiple images to FTP server in iOS

假装没事ソ 提交于 2019-12-11 07:36:46

问题


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.

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?


回答1:


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.

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

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



来源:https://stackoverflow.com/questions/48090952/upload-multiple-images-to-ftp-server-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!