2016-10-25 8 views
0

Ich weiß nicht, was mache ich falsch?FTP-Upload mit 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.})) 

Mit xcode8 und schnell: kann jemand

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

Fehler helfen.

Antwort

0

Sie sollten eine andere Bibliothek verwenden. Alamofire unterstützt nur die http/https-Protokolle.