disusered / cordova-open

Open audio, video, images and more with applications installed on the user's device
MIT License
54 stars 55 forks source link

Get mime type from lower cased extension #57

Closed bytex64 closed 6 years ago

bytex64 commented 7 years ago

Opening files with upper-case extensions (e.g. file.JPG) causes android.webkit.MimeTypeMap's lookup to fail, resulting in files being opened with the wrong app (which usually results in them being unopenable). This normalizes the extension to lower case.

disusered commented 6 years ago

A very belated thank you for this.

bytex64 commented 6 years ago

You're quite welcome. :) Happy New Year!