Cordova Image Picker Returning Temp URL From Cache Folder Where Images Are Not Present In It

北城余情 提交于 2021-02-10 18:21:47

问题


Not able to get the right image url when I select the images from the android device, I am able to get the temp image url from the cache where there is no original imaged copied to it.

The Url which I got from the plugin looks like this.

"file:///data/user/0/com.myapp.dev/cache/tmp_20180118_125700267959888.jpg"

Is there any way to get the original image path or the temp url itself where the duplicate image is present in it?

Plugin URL : https://github.com/wymsee/cordova-imagePicker.git

Plugin Version :1.1.1


回答1:


As reported in git repository readme:

Note for Android Use The plugin returns images that are stored in a temporary directory. These images will often not be deleted automatically though. The files should be moved or deleted after you get their filepaths in javascript.

Anyway i think you need to edit source of plugin to return original image path in javascript callback.



来源:https://stackoverflow.com/questions/48380996/cordova-image-picker-returning-temp-url-from-cache-folder-where-images-are-not-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!