Closed jfoclpf closed 3 years ago
My point is that this path does not work as attachment
file:///data/user/0/com.form.parking.violation/cache/img1.jpg
but this works
app://cache/img1.jpg
@katzer if your have a time for this, it would be nice ;)
In android I solved the issue with
path.replace(cordova.file.applicationStorageDirectory, 'app://')
For internal app file system you suggest using this:
But I realized the
file:///
pattern doesn't work for internal app file system. Why not accepting also paths likefile:///data/data/<app.package>/<dir>/filename
orfile:///data/user/<app.package>/<dir>/filename
for internal app file system? This is important because these paths are the ones which come from thecordova-plugin-file