Closed tim70312 closed 4 years ago
Hello I have same issue..unable to upload video from gallery in ionic 3 app.
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 I have same issue. İ dont undertsand your solve timbru31 ? can you elaborate your description?
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 /private/
url instead of a /var/
url and I suspect this is the same kind of issue.
@BekirBesli You really saved my day. That solution works for me.
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 logIt 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