使用SCRFTPRequest将文件上传到服务器

正在使用SCRFTPRequest在iOS应用中的FTP服务器上上传文件。

发生错误:

无法创建请求(网址错误?)

代码:

filePath = [[NSBundle mainBundle] pathForResource:@"demo" ofType:@"rtf"];

SCRFTPRequest *ftpRequest = [[SCRFTPRequest alloc] initWithURL:[NSURL URLWithString:@"ftp://130.23.45.4/demo"]
                                              toUploadFile:filePath]; 

ftpRequest.username = @"user";

ftpRequest.password = @"pass";

ftpRequest.delegate = self;

[ftpRequest startRequest];

[ftpRequest startAsynchronous]
chinamulti 回答:使用SCRFTPRequest将文件上传到服务器

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2720158.html

大家都在问