Closed santoshmohan35 closed 3 years ago
Create one directory -> create a file -> write to the file -> Opening the same file FileError: {"code":12,"message":"PATH_EXISTS_ERR"}
I think the problem is that you are creating a directory with the same name as of an existing directory.
Try to open a file without creating a directory.
yaa that works... i need to check the dir if exist.
Tryting to open some excel and doc file after creating but unfortunately got error with "code":12,"message":"PATH_EXISTS_ERR"
Only able to Open .pdf files. The same path works in email composer to attach files but not working while opening.
Reproduce Scenario (including but not limited to)
Create one directory -> create a file -> write to the file -> Opening the same file
Android 10, IOS12.4.8
Devices as Realme 3pro in android, Apple IPhone 8
Cordova CLI info
Here is the output: FileError: {"code":12,"message":"PATH_EXISTS_ERR"}
Plugin version
Here is the output:
Sample Code that illustrates the problem
this.fileOpener.open(
file:///storage/emulated/0/Samson/${fileName}
, 'application/msword') .then(_ => console.log('Opened successfully')). catch(err => console.log('error while opening file', err));Logs taken while reproducing problem
Run
adb logcat PluginManager:V CordovaPlugin:V CordovaLog:V chromium:V *:S
while testing the bug in your app to get some output from your error. This will help you to understand more about the nature of your problem.