Skip to content
This repository was archived by the owner on Mar 27, 2020. It is now read-only.

Android - Mime Type: null #44

@Ngorror

Description

@Ngorror

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions