File tree 9 files changed +46
-1
lines changed
9 files changed +46
-1
lines changed Original file line number Diff line number Diff line change @@ -39,16 +39,41 @@ function getFileTypeFromMimeType(mimeType) {
39
39
ext : 'odt' ,
40
40
mime : 'application/vnd.oasis.opendocument.text' ,
41
41
} ;
42
+ case 'application/vnd.oasis.opendocument.text-template' :
43
+ return {
44
+ ext : 'ott' ,
45
+ mime : 'application/vnd.oasis.opendocument.text-template' ,
46
+ } ;
42
47
case 'application/vnd.oasis.opendocument.spreadsheet' :
43
48
return {
44
49
ext : 'ods' ,
45
50
mime : 'application/vnd.oasis.opendocument.spreadsheet' ,
46
51
} ;
52
+ case 'application/vnd.oasis.opendocument.spreadsheet-template' :
53
+ return {
54
+ ext : 'ots' ,
55
+ mime : 'application/vnd.oasis.opendocument.spreadsheet-template' ,
56
+ } ;
47
57
case 'application/vnd.oasis.opendocument.presentation' :
48
58
return {
49
59
ext : 'odp' ,
50
60
mime : 'application/vnd.oasis.opendocument.presentation' ,
51
61
} ;
62
+ case 'application/vnd.oasis.opendocument.presentation-template' :
63
+ return {
64
+ ext : 'otp' ,
65
+ mime : 'application/vnd.oasis.opendocument.presentation-template' ,
66
+ } ;
67
+ case 'application/vnd.oasis.opendocument.graphics' :
68
+ return {
69
+ ext : 'odg' ,
70
+ mime : 'application/vnd.oasis.opendocument.graphics' ,
71
+ } ;
72
+ case 'application/vnd.oasis.opendocument.graphics-template' :
73
+ return {
74
+ ext : 'otg' ,
75
+ mime : 'application/vnd.oasis.opendocument.graphics-template' ,
76
+ } ;
52
77
case 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' :
53
78
return {
54
79
ext : 'xlsx' ,
Original file line number Diff line number Diff line change 223
223
" potx" ,
224
224
" xltx" ,
225
225
" dotx" ,
226
- " xltm"
226
+ " xltm" ,
227
+ " ots" ,
228
+ " odg" ,
229
+ " otg" ,
230
+ " otp" ,
231
+ " ott"
227
232
],
228
233
"dependencies" : {
229
234
"@tokenizer/inflate" : " ^0.2.6" ,
Original file line number Diff line number Diff line change @@ -514,6 +514,7 @@ abortController.abort(); // Abort file-type reading from the Blob stream.
514
514
- [` mxf` ](https://en.wikipedia.org/wiki/Material_Exchange_Format) - Material Exchange Format
515
515
- [` nef` ](https://www.nikonusa.com/en/learn-and-explore/a/products-and-innovation/nikon-electronic-format-nef.html) - Nikon Electronic Format image file
516
516
- [` nes` ](https://fileinfo.com/extension/nes) - Nintendo NES ROM
517
+ - [` odg` ](https://en.wikipedia.org/wiki/OpenDocument) - OpenDocument for drawing
517
518
- [` odp` ](https://en.wikipedia.org/wiki/OpenDocument) - OpenDocument for presentations
518
519
- [` ods` ](https://en.wikipedia.org/wiki/OpenDocument) - OpenDocument for spreadsheets
519
520
- [` odt` ](https://en.wikipedia.org/wiki/OpenDocument) - OpenDocument for word processing
@@ -525,6 +526,10 @@ abortController.abort(); // Abort file-type reading from the Blob stream.
525
526
- [` opus` ](https://en.wikipedia.org/wiki/Opus_(audio_format)) - Audio file
526
527
- [` orf` ](https://en.wikipedia.org/wiki/ORF_format) - Olympus Raw image file
527
528
- [` otf` ](https://en.wikipedia.org/wiki/OpenType) - OpenType font
529
+ - [` otg` ](https://en.wikipedia.org/wiki/OpenDocument_technical_specification#Templates) - OpenDocument template for drawing
530
+ - [` otp` ](https://en.wikipedia.org/wiki/OpenDocument_technical_specification#Templates) - OpenDocument template for presentations
531
+ - [` ots` ](https://en.wikipedia.org/wiki/OpenDocument_technical_specification#Templates) - OpenDocument template for spreadsheets
532
+ - [` ott` ](https://en.wikipedia.org/wiki/OpenDocument_technical_specification#Templates) - OpenDocument template for word processing
528
533
- [` parquet` ](https://en.wikipedia.org/wiki/Apache_Parquet) - Apache Parquet
529
534
- [` pcap` ](https://wiki.wireshark.org/Development/LibpcapFileFormat) - Libpcap File Format
530
535
- [` pdf` ](https://en.wikipedia.org/wiki/Portable_Document_Format) - Portable Document Format
Original file line number Diff line number Diff line change @@ -160,6 +160,11 @@ export const extensions = [
160
160
'xltx' ,
161
161
'dotx' ,
162
162
'xltm' ,
163
+ 'ott' ,
164
+ 'ots' ,
165
+ 'otp' ,
166
+ 'odg' ,
167
+ 'otg' ,
163
168
] ;
164
169
165
170
export const mimeTypes = [
@@ -319,4 +324,9 @@ export const mimeTypes = [
319
324
'application/vnd.openxmlformats-officedocument.spreadsheetml.template' ,
320
325
'application/vnd.openxmlformats-officedocument.wordprocessingml.template' ,
321
326
'application/vnd.ms-excel.template.macroenabled.12' ,
327
+ 'application/vnd.oasis.opendocument.text-template' ,
328
+ 'application/vnd.oasis.opendocument.spreadsheet-template' ,
329
+ 'application/vnd.oasis.opendocument.presentation-template' ,
330
+ 'application/vnd.oasis.opendocument.graphics' ,
331
+ 'application/vnd.oasis.opendocument.graphics-template' ,
322
332
] ;
You can’t perform that action at this time.
0 commit comments