问题
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