0
Я не знаю, что я делаю неправильно? кто-нибудь может помочьЗагрузка FTP с помощью alamofire?
let imageData = UIImageJPEGRepresentation(pickedImage, 30)!
Alamofire.upload(imageData, to: "ftp://username:[email protected]:21/")
.uploadProgress{ Progress in print("Upload Progress : \(Progress.fractionCompleted)")}
.responseJSON(completionHandler: { response in
debugPrint(response)
})
Ошибка:
responseSerializationFailed(Alamofire.AFError.ResponseSerializationFailureReason.jsonSerializationFailed(Error Domain=NSCocoaErrorDomain Code=3840 "Number with minus sign but no digits around character 1." UserInfo={NSDebugDescription=Number with minus sign but no digits around character 1.}))
Использование xcode8 и Свифта.