File tree 5 files changed +13
-1
lines changed
5 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -494,6 +494,14 @@ export class FileTypeParser {
494
494
return {
495
495
stop : true ,
496
496
} ;
497
+ case 'META-INF/MANIFEST.MF' :
498
+ fileType = {
499
+ ext : 'jar' ,
500
+ mime : 'application/java-archive' ,
501
+ } ;
502
+ return {
503
+ stop : true ,
504
+ } ;
497
505
case 'mimetype' :
498
506
return {
499
507
async handler ( fileData ) {
Original file line number Diff line number Diff line change 228
228
" odg" ,
229
229
" otg" ,
230
230
" otp" ,
231
- " ott"
231
+ " ott" ,
232
+ " jar"
232
233
],
233
234
"dependencies" : {
234
235
"@tokenizer/inflate" : " ^0.2.6" ,
Original file line number Diff line number Diff line change @@ -482,6 +482,7 @@ abortController.abort(); // Abort file-type reading from the Blob stream.
482
482
- [` indd` ](https://en.wikipedia.org/wiki/Adobe_InDesign#File_format) - Adobe InDesign document
483
483
- [` it` ](https://wiki.openmpt.org/Manual:_Module_formats#The_Impulse_Tracker_format_.28.it.29) - Audio module format: Impulse Tracker
484
484
- [` j2c` ](https://en.wikipedia.org/wiki/JPEG_2000) - JPEG 2000
485
+ - [` jar` ](https://en.wikipedia.org/wiki/JAR_(file_format)) - Java archive
485
486
- [` jls` ](https://en.wikipedia.org/wiki/Lossless_JPEG#JPEG-LS) - Lossless/near-lossless compression standard for continuous-tone images
486
487
- [` jp2` ](https://en.wikipedia.org/wiki/JPEG_2000) - JPEG 2000
487
488
- [` jpg` ](https://en.wikipedia.org/wiki/JPEG) - Joint Photographic Experts Group image
Original file line number Diff line number Diff line change @@ -165,6 +165,7 @@ export const extensions = [
165
165
'otp' ,
166
166
'odg' ,
167
167
'otg' ,
168
+ 'jar' ,
168
169
] ;
169
170
170
171
export const mimeTypes = [
@@ -329,4 +330,5 @@ export const mimeTypes = [
329
330
'application/vnd.oasis.opendocument.presentation-template' ,
330
331
'application/vnd.oasis.opendocument.graphics' ,
331
332
'application/vnd.oasis.opendocument.graphics-template' ,
333
+ 'application/java-archive' ,
332
334
] ;
You can’t perform that action at this time.
0 commit comments