Closed lwj1994 closed 3 months ago
Would content://media/external/image/media/102
work with WebView? That doesn't sound correct.
Would
content://media/external/image/media/102
work with WebView? That doesn't sound correct.
after allow _isAndroidImage
get uri, it works .
can i pr this commit?
After my test,in flutter_webview,only uri is effective , https://support.qq.com/products/1368
androidController.setOnShowFileSelector((FileSelectorParams params) async {
switch (params.mode) {
case FileSelectorMode.open:
case FileSelectorMode.openMultiple:
final assetEntity = await Picker.pickAImage(
AppMainPage.scaffoldKey.currentContext!);
if (assetEntity == null) return [];
return [
assetEntity.androidUri.isNotEmpty
? assetEntity.androidUri
: assetEntity.filePath
];
usring uri seems reasonable that file path cannot be accessed after 30
Platforms
Android
Description
provide image uri
Why
when pick image in webview,it only receive image uri