Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let imageData = UIImageJPEGRepresentation(pickedImage, 30)!
- Alamofire.upload(imageData, to: "ftp://username:password@ip:21/")
- // .authenticate(user: "administrator", password: "oasis210308ftp")
- .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.}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement