2016-10-25 5 views
0

내가 뭘 잘못하고 있는지 몰라? xcode8 및 신속한 사용alamofire로 FTP 업로드 하시겠습니까?

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 프로토콜 만 지원합니다.