Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. let imageData = UIImageJPEGRepresentation(pickedImage, 30)!
  2.  
  3. Alamofire.upload(imageData, to: "ftp://username:password@ip:21/")
  4. // .authenticate(user: "administrator", password: "oasis210308ftp")
  5. .uploadProgress{ Progress in print("Upload Progress : (Progress.fractionCompleted)")}
  6. .responseJSON(completionHandler: { response in
  7. debugPrint(response)
  8. })
  9.  
  10. 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.}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement