2016-10-25 13 views
0

私は何が間違っているのか分かりませんか? xcode8と迅速を使用してFTPでalamofireをアップロードしますか?

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.})) 

:誰もが

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) 
      }) 

エラーを助けることができます。

答えて

0

別のライブラリを使用する必要があります。 Alamofireはhttp/httpsプロトコルのみをサポートしています。

関連する問題