cordova-open icon indicating copy to clipboard operation
cordova-open copied to clipboard

Android - Mime Type: null

Open Ngorror opened this issue 9 years ago • 0 comments

MimeTypeMap.getFileExtensionFromUrl is case sensitive It cannot process .JPG

suggested fix in Open.java:

  private static String getMimeType(String path) {

    String mimeType = null;
    String pathToLower = path == null ? null: path.toLowerCase();

    String extension = MimeTypeMap.getFileExtensionFromUrl(pathToLower);

P.S. I'm building my cordova app on windows

Ngorror avatar Feb 22 '16 17:02 Ngorror