diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..17f690f --- /dev/null +++ b/.npmignore @@ -0,0 +1,5 @@ +node_modules +npm-debug.log + +/www/demo/android.gif +/www/demo/ios.gif \ No newline at end of file diff --git a/src/android/MediaPicker.java b/src/android/MediaPicker.java index 5a492f0..33a22ce 100644 --- a/src/android/MediaPicker.java +++ b/src/android/MediaPicker.java @@ -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);