Загружаю файл на FTP-сервер в приложении iOS, используя 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]