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 @@ -519,6 +519,14 @@ export class FileTypeParser {
519
519
return {
520
520
stop : true ,
521
521
} ;
522
+ case 'META-INF/MANIFEST.MF' :
523
+ fileType = {
524
+ ext : 'jar' ,
525
+ mime : 'application/java-archive' ,
526
+ } ;
527
+ return {
528
+ stop : true ,
529
+ } ;
522
530
case 'mimetype' :
523
531
return {
524
532
async handler ( fileData ) {
Original file line number Diff line number Diff line change 233
233
" docm" ,
234
234
" dotm" ,
235
235
" potm" ,
236
- " pptm"
236
+ " pptm" ,
237
+ " jar"
237
238
],
238
239
"dependencies" : {
239
240
"@tokenizer/inflate" : " ^0.2.6" ,
Original file line number Diff line number Diff line change @@ -484,6 +484,7 @@ abortController.abort(); // Abort file-type reading from the Blob stream.
484
484
- [` indd` ](https://en.wikipedia.org/wiki/Adobe_InDesign#File_format) - Adobe InDesign document
485
485
- [` it` ](https://wiki.openmpt.org/Manual:_Module_formats#The_Impulse_Tracker_format_.28.it.29) - Audio module format: Impulse Tracker
486
486
- [` j2c` ](https://en.wikipedia.org/wiki/JPEG_2000) - JPEG 2000
487
+ - [` jar` ](https://en.wikipedia.org/wiki/JAR_(file_format)) - Java archive
487
488
- [` jls` ](https://en.wikipedia.org/wiki/Lossless_JPEG#JPEG-LS) - Lossless/near-lossless compression standard for continuous-tone images
488
489
- [` jp2` ](https://en.wikipedia.org/wiki/JPEG_2000) - JPEG 2000
489
490
- [` jpg` ](https://en.wikipedia.org/wiki/JPEG) - Joint Photographic Experts Group image
Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ export const extensions = [
170
170
'dotm' ,
171
171
'potm' ,
172
172
'pptm' ,
173
+ 'jar' ,
173
174
] ;
174
175
175
176
export const mimeTypes = [
@@ -339,4 +340,5 @@ export const mimeTypes = [
339
340
'application/vnd.ms-word.template.macroEnabled.12' ,
340
341
'application/vnd.ms-powerpoint.template.macroEnabled.12' ,
341
342
'application/vnd.ms-powerpoint.presentation.macroEnabled.12' ,
343
+ 'application/java-archive' ,
342
344
] ;
You can’t perform that action at this time.
0 commit comments