You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
iOS: Fixed attaching images
This commit is contained in:
@ -2,6 +2,17 @@ const mimeTypes = [{t:"application/andrew-inset",e:["ez"]},{t:"application/appli
|
||||
|
||||
const mime = {
|
||||
|
||||
fromFileExtension(ext) {
|
||||
ext = ext.toLowerCase();
|
||||
for (let i = 0; i < mimeTypes.length; i++) {
|
||||
const t = mimeTypes[i];
|
||||
if (t.e.indexOf(ext) >= 0) {
|
||||
return t.t;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
toFileExtension(mimeType) {
|
||||
mimeType = mimeType.toLowerCase();
|
||||
for (let i = 0; i < mimeTypes.length; i++) {
|
||||
|
Reference in New Issue
Block a user