提问人:testing 提问时间:1/24/2020 最后编辑:testing 更新时间:1/24/2020 访问量:44
使用 SCRFTPRequest 将文件上传到服务器
Upload file to server using SCRFTPRequest
问:
使用 在 iOS 应用程序中的 FTP 服务器上上传文件。SCRFTPRequest
发生错误:
无法创建请求(url错误?
法典:
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]
答: 暂无答案
评论
CFNetwork
[ftpRequest startRequest];
[ftpRequest startAsynchronous];