Hy大家好,我正在使用SCRFTPRequest,https://github.com/Hackmodford/SCRFTPRequest上传FTP服务器上的文件,我之前使用过它,效果很好,但现在我有一个与ARC的项目,该API在几天前被记录到ARC。在FTP上使用SCRFTPRequest进行FTP FTP上传
我有一个崩溃,我不知道为什么,它崩溃后没有任何错误消息后,startRequest,整个函数得到执行,包括startUploadRequest。我真的不知道它为什么崩溃。我在iPAD 1上测试了5.0和iPad 3和6.1。
我已经尝试了其他文件,同样的问题,该文件是在FTP服务器上创建的正确名称,但大小为0 Kb。
filePath = [[NSBundle mainBundle] pathForResource:@"Spiriva Mentiones Legales" ofType:@"pdf"];
SCRFTPRequest *ftpRequest = [[SCRFTPRequest alloc] initWithURL:[NSURL URLWithString:@"ftp://ftp.belersoft.ro/"]
toUploadFile:filePath];
ftpRequest.username = @"user";
ftpRequest.password = @"pass";
ftpRequest.delegate = self;
ftpRequest.customUploadFileName = [modifiedPathWithXLS lastPathComponent];
[ftpRequest startRequest];
我已经实现了所有的委托回调,只会ftpRequestWillStart被称为
你有没有发现任何东西?我也使用SCRFTpRequest库和我有同样的问题,我的文件也正在上传,但大小为0字节。 – Shailesh