更新时间:2022-11-16 23:21:52
我已经找到了我的问题的解决方案.
I have found the solution of my problem.
我已经完成了这个链接,效果很好.
I have done this link which is working perfectly.
https://devdactic.com/ionic-4-image-upload-存储/
而在我的 config.xml 中,extra 没有写任何东西.
And in my config.xml, extra did not write anything.
简而言之:新的 webview 插件不支持 file:///url
inshort :
new webview plugin are not support file:/// url
首先将url
转成http://localhost:
使用这个函数 this.webview.convertFileSrc(img);
first convert url
into http://localhost:<post>/url
using this function this.webview.convertFileSrc(img);
像这样返回这个函数值http://localhost:8080/_file_/data/data/xxx.xxx.xxx.xxx/files/1542782360167.jpg
我的建议使用上面的链接解决同类问题...
my suggestion use above link for same kind of problem...