mirror of
https://github.com/DmcSDK/cordova-plugin-mediaPicker
synced 2024-10-06 00:22:11 +08:00
fix bug
This commit is contained in:
parent
cc190a020c
commit
1c61c12d88
5
.npmignore
Normal file
5
.npmignore
Normal file
@ -0,0 +1,5 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
|
||||
/www/demo/android.gif
|
||||
/www/demo/ios.gif
|
@ -237,7 +237,7 @@ public class MediaPicker extends CordovaPlugin {
|
||||
if(quality<100) {
|
||||
File file = compressImage(path, quality);
|
||||
jsonObject.put("path", file.getPath());
|
||||
jsonObject.put("uri", Uri.fromFile(file.getPath()));
|
||||
jsonObject.put("uri", Uri.fromFile(new File(file.getPath())));
|
||||
jsonObject.put("size", file.length());
|
||||
jsonObject.put("name", file.getName());
|
||||
callbackContext.success(jsonObject);
|
||||
|
Loading…
Reference in New Issue
Block a user