正在使用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]