-
Notifications
You must be signed in to change notification settings - Fork 889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS 13 Upload encounter Error Domain=NSCocoaErrorDomain Code=257 #245
Comments
Hello |
Is this reproducible in a new, plain Cordova app? A minimal reproduction repository would really help to debug and later fix this issue. More information on how to create one: https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md |
Hello |
apache/cordova-plugin-camera#506 (comment) |
There's been several reports among plugins that interact with the file system on iOS 13 such as the issue @BekirBesli related to urls returning a |
@BekirBesli You really saved my day. |
Bug Report
fileTransfer.upload(...) returns an error with code = 1. Works well with IOS 12.4.
Problem
While calling fileTransfer.upload() to upload a video,it return error code 1
What is expected to happen?
Upload data with video successfully to a remote server.(Works well with IOS 12.4)
What does actually happen?
I found the problem is at this line.
NSData* fileData = [NSData dataWithContentsOfFile:filePath options:NSDataReadingMappedIfSafe error:&err];
Here's the error log
It seems that apple change the way of dealing NSData
Information
I'm using xcode11 and complie to my IOS 13.1.2 device.
Command or Code
Environment, Platform, Device
Testing on iPhone8 with iOS version 12.3.2.
iPhoneX with iOS version 12.4.
Version information
MacOS Mojave 10.14.4
XCode 11
Cordova 9.0.0
Checklist
The text was updated successfully, but these errors were encountered: