-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmimetype.go
1418 lines (1409 loc) · 102 KB
/
mimetype.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package mimetype_ext
import (
"fmt"
"strings"
)
var extensions = map[string][]string{
"application/andrew-inset": []string{"ez"},
"application/applixware": []string{"aw"},
"application/atom+xml": []string{"atom", "xml"},
"application/atomcat+xml": []string{"atomcat"},
"application/atomsvc+xml": []string{"atomsvc"},
"application/ccxml+xml,": []string{"ccxml"},
"application/cdmi-capability": []string{"cdmia"},
"application/cdmi-container": []string{"cdmic"},
"application/cdmi-domain": []string{"cdmid"},
"application/cdmi-object": []string{"cdmio"},
"application/cdmi-queue": []string{"cdmiq"},
"application/cu-seeme": []string{"cu"},
"application/davmount+xml": []string{"davmount"},
"application/dssc+der": []string{"dssc"},
"application/dssc+xml": []string{"xdssc"},
"application/ecmascript": []string{"es"},
"application/emma+xml": []string{"emma"},
"application/epub+zip": []string{"epub"},
"application/exi": []string{"exi"},
"application/font-tdpfr": []string{"pfr"},
"application/hyperstudio": []string{"stk"},
"application/ipfix": []string{"ipfix"},
"application/java-archive": []string{"jar"},
"application/java-serialized-object": []string{"ser"},
"application/java-vm": []string{"class"},
"application/javascript": []string{"js"},
"application/json": []string{"json"},
"application/mac-binhex40": []string{"hqx"},
"application/mac-compactpro": []string{"cpt"},
"application/mads+xml": []string{"mads"},
"application/marc": []string{"mrc"},
"application/marcxml+xml": []string{"mrcx"},
"application/mathematica": []string{"ma"},
"application/mathml+xml": []string{"mathml"},
"application/mbox": []string{"mbox"},
"application/mediaservercontrol+xml": []string{"mscml"},
"application/metalink4+xml": []string{"meta4"},
"application/mets+xml": []string{"mets"},
"application/mods+xml": []string{"mods"},
"application/mp21": []string{"m21"},
"application/mp4": []string{"mp4"},
"application/msword": []string{"doc"},
"application/mxf": []string{"mxf"},
"application/octet-stream": []string{"bin"},
"application/oda": []string{"oda"},
"application/oebps-package+xml": []string{"opf"},
"application/ogg": []string{"ogx"},
"application/onenote": []string{"onetoc"},
"application/patch-ops-error+xml": []string{"xer"},
"application/pdf": []string{"pdf"},
"application/pgp-encrypted": []string{"pgp"},
"application/pgp-signature": []string{"pgp"},
"application/pics-rules": []string{"prf"},
"application/pkcs10": []string{"p10"},
"application/pkcs7-mime": []string{"p7m"},
"application/pkcs7-signature": []string{"p7s"},
"application/pkcs8": []string{"p8"},
"application/pkix-attr-cert": []string{"ac"},
"application/pkix-cert": []string{"cer"},
"application/pkix-crl": []string{"crl"},
"application/pkix-pkipath": []string{"pkipath"},
"application/pkixcmp": []string{"pki"},
"application/pls+xml": []string{"pls"},
"application/postscript": []string{"ai"},
"application/prs.cww": []string{"cww"},
"application/pskc+xml": []string{"pskcxml"},
"application/rdf+xml": []string{"rdf"},
"application/reginfo+xml": []string{"rif"},
"application/relax-ng-compact-syntax": []string{"rnc"},
"application/resource-lists+xml": []string{"rl"},
"application/resource-lists-diff+xml": []string{"rld"},
"application/rls-services+xml": []string{"rs"},
"application/rsd+xml": []string{"rsd"},
"application/rss+xml": []string{"rss", "xml"},
"application/rtf": []string{"rtf"},
"application/sbml+xml": []string{"sbml"},
"application/scvp-cv-request": []string{"scq"},
"application/scvp-cv-response": []string{"scs"},
"application/scvp-vp-request": []string{"spq"},
"application/scvp-vp-response": []string{"spp"},
"application/sdp": []string{"sdp"},
"application/set-payment-initiation": []string{"setpay"},
"application/set-registration-initiation": []string{"setreg"},
"application/shf+xml": []string{"shf"},
"application/smil+xml": []string{"smi"},
"application/sparql-query": []string{"rq"},
"application/sparql-results+xml": []string{"srx"},
"application/srgs": []string{"gram"},
"application/srgs+xml": []string{"grxml"},
"application/sru+xml": []string{"sru"},
"application/ssml+xml": []string{"ssml"},
"application/tei+xml": []string{"tei"},
"application/thraud+xml": []string{"tfi"},
"application/timestamped-data": []string{"tsd"},
"application/vnd.3gpp.pic-bw-large": []string{"plb"},
"application/vnd.3gpp.pic-bw-small": []string{"psb"},
"application/vnd.3gpp.pic-bw-var": []string{"pvb"},
"application/vnd.3gpp2.tcap": []string{"tcap"},
"application/vnd.3m.post-it-notes": []string{"pwn"},
"application/vnd.accpac.simply.aso": []string{"aso"},
"application/vnd.accpac.simply.imp": []string{"imp"},
"application/vnd.acucobol": []string{"acu"},
"application/vnd.acucorp": []string{"atc"},
"application/vnd.adobe.air-application-installer-package+zip": []string{"air"},
"application/vnd.adobe.fxp": []string{"fxp"},
"application/vnd.adobe.xdp+xml": []string{"xdp"},
"application/vnd.adobe.xfdf": []string{"xfdf"},
"application/vnd.ahead.space": []string{"ahead"},
"application/vnd.airzip.filesecure.azf": []string{"azf"},
"application/vnd.airzip.filesecure.azs": []string{"azs"},
"application/vnd.amazon.ebook": []string{"azw"},
"application/vnd.americandynamics.acc": []string{"acc"},
"application/vnd.amiga.ami": []string{"ami"},
"application/vnd.android.package-archive": []string{"apk"},
"application/vnd.anser-web-certificate-issue-initiation": []string{"cii"},
"application/vnd.anser-web-funds-transfer-initiation": []string{"fti"},
"application/vnd.antix.game-component": []string{"atx"},
"application/vnd.apple.installer+xml": []string{"mpkg"},
"application/vnd.apple.mpegurl": []string{"m3u8"},
"application/vnd.aristanetworks.swi": []string{"swi"},
"application/vnd.audiograph": []string{"aep"},
"application/vnd.blueice.multipass": []string{"mpm"},
"application/vnd.bmi": []string{"bmi"},
"application/vnd.businessobjects": []string{"rep"},
"application/vnd.chemdraw+xml": []string{"cdxml"},
"application/vnd.chipnuts.karaoke-mmd": []string{"mmd"},
"application/vnd.cinderella": []string{"cdy"},
"application/vnd.claymore": []string{"cla"},
"application/vnd.cloanto.rp9": []string{"rp9"},
"application/vnd.clonk.c4group": []string{"c4g"},
"application/vnd.cluetrust.cartomobile-config": []string{"c11amc"},
"application/vnd.cluetrust.cartomobile-config-pkg": []string{"c11amz"},
"application/vnd.commonspace": []string{"csp"},
"application/vnd.contact.cmsg": []string{"cdbcmsg"},
"application/vnd.cosmocaller": []string{"cmc"},
"application/vnd.crick.clicker": []string{"clkx"},
"application/vnd.crick.clicker.keyboard": []string{"clkk"},
"application/vnd.crick.clicker.palette": []string{"clkp"},
"application/vnd.crick.clicker.template": []string{"clkt"},
"application/vnd.crick.clicker.wordbank": []string{"clkw"},
"application/vnd.criticaltools.wbs+xml": []string{"wbs"},
"application/vnd.ctc-posml": []string{"pml"},
"application/vnd.cups-ppd": []string{"ppd"},
"application/vnd.curl.car": []string{"car"},
"application/vnd.curl.pcurl": []string{"pcurl"},
"application/vnd.data-vision.rdz": []string{"rdz"},
"application/vnd.denovo.fcselayout-link": []string{"fe_launch"},
"application/vnd.dna": []string{"dna"},
"application/vnd.dolby.mlp": []string{"mlp"},
"application/vnd.dpgraph": []string{"dpg"},
"application/vnd.dreamfactory": []string{"dfac"},
"application/vnd.dvb.ait": []string{"ait"},
"application/vnd.dvb.service": []string{"svc"},
"application/vnd.dynageo": []string{"geo"},
"application/vnd.ecowin.chart": []string{"mag"},
"application/vnd.enliven": []string{"nml"},
"application/vnd.epson.esf": []string{"esf"},
"application/vnd.epson.msf": []string{"msf"},
"application/vnd.epson.quickanime": []string{"qam"},
"application/vnd.epson.salt": []string{"slt"},
"application/vnd.epson.ssf": []string{"ssf"},
"application/vnd.eszigno3+xml": []string{"es3"},
"application/vnd.ezpix-album": []string{"ez2"},
"application/vnd.ezpix-package": []string{"ez3"},
"application/vnd.fdf": []string{"fdf"},
"application/vnd.fdsn.seed": []string{"seed"},
"application/vnd.flographit": []string{"gph"},
"application/vnd.fluxtime.clip": []string{"ftc"},
"application/vnd.framemaker": []string{"fm"},
"application/vnd.frogans.fnc": []string{"fnc"},
"application/vnd.frogans.ltf": []string{"ltf"},
"application/vnd.fsc.weblaunch": []string{"fsc"},
"application/vnd.fujitsu.oasys": []string{"oas"},
"application/vnd.fujitsu.oasys2": []string{"oa2"},
"application/vnd.fujitsu.oasys3": []string{"oa3"},
"application/vnd.fujitsu.oasysgp": []string{"fg5"},
"application/vnd.fujitsu.oasysprs": []string{"bh2"},
"application/vnd.fujixerox.ddd": []string{"ddd"},
"application/vnd.fujixerox.docuworks": []string{"xdw"},
"application/vnd.fujixerox.docuworks.binder": []string{"xbd"},
"application/vnd.fuzzysheet": []string{"fzs"},
"application/vnd.genomatix.tuxedo": []string{"txd"},
"application/vnd.geogebra.file": []string{"ggb"},
"application/vnd.geogebra.tool": []string{"ggt"},
"application/vnd.geometry-explorer": []string{"gex"},
"application/vnd.geonext": []string{"gxt"},
"application/vnd.geoplan": []string{"g2w"},
"application/vnd.geospace": []string{"g3w"},
"application/vnd.gmx": []string{"gmx"},
"application/vnd.google-earth.kml+xml": []string{"kml"},
"application/vnd.google-earth.kmz": []string{"kmz"},
"application/vnd.grafeq": []string{"gqf"},
"application/vnd.groove-account": []string{"gac"},
"application/vnd.groove-help": []string{"ghf"},
"application/vnd.groove-identity-message": []string{"gim"},
"application/vnd.groove-injector": []string{"grv"},
"application/vnd.groove-tool-message": []string{"gtm"},
"application/vnd.groove-tool-template": []string{"tpl"},
"application/vnd.groove-vcard": []string{"vcg"},
"application/vnd.hal+xml": []string{"hal"},
"application/vnd.handheld-entertainment+xml": []string{"zmm"},
"application/vnd.hbci": []string{"hbci"},
"application/vnd.hhe.lesson-player": []string{"les"},
"application/vnd.hp-hpgl": []string{"hpgl"},
"application/vnd.hp-hpid": []string{"hpid"},
"application/vnd.hp-hps": []string{"hps"},
"application/vnd.hp-jlyt": []string{"jlt"},
"application/vnd.hp-pcl": []string{"pcl"},
"application/vnd.hp-pclxl": []string{"pclxl"},
"application/vnd.hydrostatix.sof-data": []string{"sfd-hdstx"},
"application/vnd.hzn-3d-crossword": []string{"x3d"},
"application/vnd.ibm.minipay": []string{"mpy"},
"application/vnd.ibm.modcap": []string{"afp"},
"application/vnd.ibm.rights-management": []string{"irm"},
"application/vnd.ibm.secure-container": []string{"sc"},
"application/vnd.iccprofile": []string{"icc"},
"application/vnd.igloader": []string{"igl"},
"application/vnd.immervision-ivp": []string{"ivp"},
"application/vnd.immervision-ivu": []string{"ivu"},
"application/vnd.insors.igm": []string{"igm"},
"application/vnd.intercon.formnet": []string{"xpw"},
"application/vnd.intergeo": []string{"i2g"},
"application/vnd.intu.qbo": []string{"qbo"},
"application/vnd.intu.qfx": []string{"qfx"},
"application/vnd.ipunplugged.rcprofile": []string{"rcprofile"},
"application/vnd.irepository.package+xml": []string{"irp"},
"application/vnd.is-xpr": []string{"xpr"},
"application/vnd.isac.fcs": []string{"fcs"},
"application/vnd.jam": []string{"jam"},
"application/vnd.jcp.javame.midlet-rms": []string{"rms"},
"application/vnd.jisp": []string{"jisp"},
"application/vnd.joost.joda-archive": []string{"joda"},
"application/vnd.kahootz": []string{"ktz"},
"application/vnd.kde.karbon": []string{"karbon"},
"application/vnd.kde.kchart": []string{"chrt"},
"application/vnd.kde.kformula": []string{"kfo"},
"application/vnd.kde.kivio": []string{"flw"},
"application/vnd.kde.kontour": []string{"kon"},
"application/vnd.kde.kpresenter": []string{"kpr"},
"application/vnd.kde.kspread": []string{"ksp"},
"application/vnd.kde.kword": []string{"kwd"},
"application/vnd.kenameaapp": []string{"htke"},
"application/vnd.kidspiration": []string{"kia"},
"application/vnd.kinar": []string{"kne"},
"application/vnd.koan": []string{"skp"},
"application/vnd.kodak-descriptor": []string{"sse"},
"application/vnd.las.las+xml": []string{"lasxml"},
"application/vnd.llamagraphics.life-balance.desktop": []string{"lbd"},
"application/vnd.llamagraphics.life-balance.exchange+xml": []string{"lbe"},
"application/vnd.lotus-1-2-3": []string{"123"},
"application/vnd.lotus-approach": []string{"apr"},
"application/vnd.lotus-freelance": []string{"pre"},
"application/vnd.lotus-notes": []string{"nsf"},
"application/vnd.lotus-organizer": []string{"org"},
"application/vnd.lotus-screencam": []string{"scm"},
"application/vnd.lotus-wordpro": []string{"lwp"},
"application/vnd.macports.portpkg": []string{"portpkg"},
"application/vnd.mcd": []string{"mcd"},
"application/vnd.medcalcdata": []string{"mc1"},
"application/vnd.mediastation.cdkey": []string{"cdkey"},
"application/vnd.mfer": []string{"mwf"},
"application/vnd.mfmp": []string{"mfm"},
"application/vnd.micrografx.flo": []string{"flo"},
"application/vnd.micrografx.igx": []string{"igx"},
"application/vnd.mif": []string{"mif"},
"application/vnd.mobius.daf": []string{"daf"},
"application/vnd.mobius.dis": []string{"dis"},
"application/vnd.mobius.mbk": []string{"mbk"},
"application/vnd.mobius.mqy": []string{"mqy"},
"application/vnd.mobius.msl": []string{"msl"},
"application/vnd.mobius.plc": []string{"plc"},
"application/vnd.mobius.txf": []string{"txf"},
"application/vnd.mophun.application": []string{"mpn"},
"application/vnd.mophun.certificate": []string{"mpc"},
"application/vnd.mozilla.xul+xml": []string{"xul"},
"application/vnd.ms-artgalry": []string{"cil"},
"application/vnd.ms-cab-compressed": []string{"cab"},
"application/vnd.ms-excel": []string{"xls"},
"application/vnd.ms-excel.addin.macroenabled.12": []string{"xlam"},
"application/vnd.ms-excel.sheet.binary.macroenabled.12": []string{"xlsb"},
"application/vnd.ms-excel.sheet.macroenabled.12": []string{"xlsm"},
"application/vnd.ms-excel.template.macroenabled.12": []string{"xltm"},
"application/vnd.ms-fontobject": []string{"eot"},
"application/vnd.ms-htmlhelp": []string{"chm"},
"application/vnd.ms-ims": []string{"ims"},
"application/vnd.ms-lrm": []string{"lrm"},
"application/vnd.ms-officetheme": []string{"thmx"},
"application/vnd.ms-pki.seccat": []string{"cat"},
"application/vnd.ms-pki.stl": []string{"stl"},
"application/vnd.ms-powerpoint": []string{"ppt"},
"application/vnd.ms-powerpoint.addin.macroenabled.12": []string{"ppam"},
"application/vnd.ms-powerpoint.presentation.macroenabled.12": []string{"pptm"},
"application/vnd.ms-powerpoint.slide.macroenabled.12": []string{"sldm"},
"application/vnd.ms-powerpoint.slideshow.macroenabled.12": []string{"ppsm"},
"application/vnd.ms-powerpoint.template.macroenabled.12": []string{"potm"},
"application/vnd.ms-project": []string{"mpp"},
"application/vnd.ms-word.document.macroenabled.12": []string{"docm"},
"application/vnd.ms-word.template.macroenabled.12": []string{"dotm"},
"application/vnd.ms-works": []string{"wps"},
"application/vnd.ms-wpl": []string{"wpl"},
"application/vnd.ms-xpsdocument": []string{"xps"},
"application/vnd.mseq": []string{"mseq"},
"application/vnd.musician": []string{"mus"},
"application/vnd.muvee.style": []string{"msty"},
"application/vnd.neurolanguage.nlu": []string{"nlu"},
"application/vnd.noblenet-directory": []string{"nnd"},
"application/vnd.noblenet-sealer": []string{"nns"},
"application/vnd.noblenet-web": []string{"nnw"},
"application/vnd.nokia.n-gage.data": []string{"ngdat"},
"application/vnd.nokia.n-gage.symbian.install": []string{"n-gage"},
"application/vnd.nokia.radio-preset": []string{"rpst"},
"application/vnd.nokia.radio-presets": []string{"rpss"},
"application/vnd.novadigm.edm": []string{"edm"},
"application/vnd.novadigm.edx": []string{"edx"},
"application/vnd.novadigm.ext": []string{"ext"},
"application/vnd.oasis.opendocument.chart": []string{"odc"},
"application/vnd.oasis.opendocument.chart-template": []string{"otc"},
"application/vnd.oasis.opendocument.database": []string{"odb"},
"application/vnd.oasis.opendocument.formula": []string{"odf"},
"application/vnd.oasis.opendocument.formula-template": []string{"odft"},
"application/vnd.oasis.opendocument.graphics": []string{"odg"},
"application/vnd.oasis.opendocument.graphics-template": []string{"otg"},
"application/vnd.oasis.opendocument.image": []string{"odi"},
"application/vnd.oasis.opendocument.image-template": []string{"oti"},
"application/vnd.oasis.opendocument.presentation": []string{"odp"},
"application/vnd.oasis.opendocument.presentation-template": []string{"otp"},
"application/vnd.oasis.opendocument.spreadsheet": []string{"ods"},
"application/vnd.oasis.opendocument.spreadsheet-template": []string{"ots"},
"application/vnd.oasis.opendocument.text": []string{"odt"},
"application/vnd.oasis.opendocument.text-master": []string{"odm"},
"application/vnd.oasis.opendocument.text-template": []string{"ott"},
"application/vnd.oasis.opendocument.text-web": []string{"oth"},
"application/vnd.olpc-sugar": []string{"xo"},
"application/vnd.oma.dd2+xml": []string{"dd2"},
"application/vnd.openofficeorg.extension": []string{"oxt"},
"application/vnd.openxmlformats-officedocument.presentationml.presentation": []string{"pptx"},
"application/vnd.openxmlformats-officedocument.presentationml.slide": []string{"sldx"},
"application/vnd.openxmlformats-officedocument.presentationml.slideshow": []string{"ppsx"},
"application/vnd.openxmlformats-officedocument.presentationml.template": []string{"potx"},
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": []string{"xlsx"},
"application/vnd.openxmlformats-officedocument.spreadsheetml.template": []string{"xltx"},
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": []string{"docx"},
"application/vnd.openxmlformats-officedocument.wordprocessingml.template": []string{"dotx"},
"application/vnd.osgeo.mapguide.package": []string{"mgp"},
"application/vnd.osgi.dp": []string{"dp"},
"application/vnd.palm": []string{"pdb"},
"application/vnd.pawaafile": []string{"paw"},
"application/vnd.pg.format": []string{"str"},
"application/vnd.pg.osasli": []string{"ei6"},
"application/vnd.picsel": []string{"efif"},
"application/vnd.pmi.widget": []string{"wg"},
"application/vnd.pocketlearn": []string{"plf"},
"application/vnd.powerbuilder6": []string{"pbd"},
"application/vnd.previewsystems.box": []string{"box"},
"application/vnd.proteus.magazine": []string{"mgz"},
"application/vnd.publishare-delta-tree": []string{"qps"},
"application/vnd.pvi.ptid1": []string{"ptid"},
"application/vnd.quark.quarkxpress": []string{"qxd"},
"application/vnd.realvnc.bed": []string{"bed"},
"application/vnd.recordare.musicxml": []string{"mxl"},
"application/vnd.recordare.musicxml+xml": []string{"musicxml"},
"application/vnd.rig.cryptonote": []string{"cryptonote"},
"application/vnd.rim.cod": []string{"cod"},
"application/vnd.rn-realmedia": []string{"rm"},
"application/vnd.route66.link66+xml": []string{"link66"},
"application/vnd.sailingtracker.track": []string{"st"},
"application/vnd.seemail": []string{"see"},
"application/vnd.sema": []string{"sema"},
"application/vnd.semd": []string{"semd"},
"application/vnd.semf": []string{"semf"},
"application/vnd.shana.informed.formdata": []string{"ifm"},
"application/vnd.shana.informed.formtemplate": []string{"itp"},
"application/vnd.shana.informed.interchange": []string{"iif"},
"application/vnd.shana.informed.package": []string{"ipk"},
"application/vnd.simtech-mindmapper": []string{"twd"},
"application/vnd.smaf": []string{"mmf"},
"application/vnd.smart.teacher": []string{"teacher"},
"application/vnd.solent.sdkm+xml": []string{"sdkm"},
"application/vnd.spotfire.dxp": []string{"dxp"},
"application/vnd.spotfire.sfs": []string{"sfs"},
"application/vnd.stardivision.calc": []string{"sdc"},
"application/vnd.stardivision.draw": []string{"sda"},
"application/vnd.stardivision.impress": []string{"sdd"},
"application/vnd.stardivision.math": []string{"smf"},
"application/vnd.stardivision.writer": []string{"sdw"},
"application/vnd.stardivision.writer-global": []string{"sgl"},
"application/vnd.stepmania.stepchart": []string{"sm"},
"application/vnd.sun.xml.calc": []string{"sxc"},
"application/vnd.sun.xml.calc.template": []string{"stc"},
"application/vnd.sun.xml.draw": []string{"sxd"},
"application/vnd.sun.xml.draw.template": []string{"std"},
"application/vnd.sun.xml.impress": []string{"sxi"},
"application/vnd.sun.xml.impress.template": []string{"sti"},
"application/vnd.sun.xml.math": []string{"sxm"},
"application/vnd.sun.xml.writer": []string{"sxw"},
"application/vnd.sun.xml.writer.global": []string{"sxg"},
"application/vnd.sun.xml.writer.template": []string{"stw"},
"application/vnd.sus-calendar": []string{"sus"},
"application/vnd.svd": []string{"svd"},
"application/vnd.symbian.install": []string{"sis"},
"application/vnd.syncml+xml": []string{"xsm"},
"application/vnd.syncml.dm+wbxml": []string{"bdm"},
"application/vnd.syncml.dm+xml": []string{"xdm"},
"application/vnd.tao.intent-module-archive": []string{"tao"},
"application/vnd.tmobile-livetv": []string{"tmo"},
"application/vnd.trid.tpt": []string{"tpt"},
"application/vnd.triscape.mxs": []string{"mxs"},
"application/vnd.trueapp": []string{"tra"},
"application/vnd.ufdl": []string{"ufd"},
"application/vnd.uiq.theme": []string{"utz"},
"application/vnd.umajin": []string{"umj"},
"application/vnd.unity": []string{"unityweb"},
"application/vnd.uoml+xml": []string{"uoml"},
"application/vnd.vcx": []string{"vcx"},
"application/vnd.visio": []string{"vsd"},
"application/vnd.visio2013": []string{"vsdx"},
"application/vnd.visionary": []string{"vis"},
"application/vnd.vsf": []string{"vsf"},
"application/vnd.wap.wbxml": []string{"wbxml"},
"application/vnd.wap.wmlc": []string{"wmlc"},
"application/vnd.wap.wmlscriptc": []string{"wmlsc"},
"application/vnd.webturbo": []string{"wtb"},
"application/vnd.wolfram.player": []string{"nbp"},
"application/vnd.wordperfect": []string{"wpd"},
"application/vnd.wqd": []string{"wqd"},
"application/vnd.wt.stf": []string{"stf"},
"application/vnd.xara": []string{"xar"},
"application/vnd.xfdl": []string{"xfdl"},
"application/vnd.yamaha.hv-dic": []string{"hvd"},
"application/vnd.yamaha.hv-script": []string{"hvs"},
"application/vnd.yamaha.hv-voice": []string{"hvp"},
"application/vnd.yamaha.openscoreformat": []string{"osf"},
"application/vnd.yamaha.openscoreformat.osfpvg+xml": []string{"osfpvg"},
"application/vnd.yamaha.smaf-audio": []string{"saf"},
"application/vnd.yamaha.smaf-phrase": []string{"spf"},
"application/vnd.yellowriver-custom-menu": []string{"cmp"},
"application/vnd.zul": []string{"zir"},
"application/vnd.zzazz.deck+xml": []string{"zaz"},
"application/voicexml+xml": []string{"vxml"},
"application/widget": []string{"wgt"},
"application/winhlp": []string{"hlp"},
"application/wsdl+xml": []string{"wsdl"},
"application/wspolicy+xml": []string{"wspolicy"},
"application/x-7z-compressed": []string{"7z"},
"application/x-abiword": []string{"abw"},
"application/x-ace-compressed": []string{"ace"},
"application/x-apple-diskimage": []string{"dmg"},
"application/x-authorware-bin": []string{"aab"},
"application/x-authorware-map": []string{"aam"},
"application/x-authorware-seg": []string{"aas"},
"application/x-bcpio": []string{"bcpio"},
"application/x-bittorrent": []string{"torrent"},
"application/x-bzip": []string{"bz"},
"application/x-bzip2": []string{"bz2"},
"application/x-cdlink": []string{"vcd"},
"application/x-chat": []string{"chat"},
"application/x-chess-pgn": []string{"pgn"},
"application/x-cpio": []string{"cpio"},
"application/x-csh": []string{"csh"},
"application/x-debian-package": []string{"deb"},
"application/x-director": []string{"dir"},
"application/x-doom": []string{"wad"},
"application/x-dtbncx+xml": []string{"ncx"},
"application/x-dtbook+xml": []string{"dtb"},
"application/x-dtbresource+xml": []string{"res"},
"application/x-dvi": []string{"dvi"},
"application/x-font-bdf": []string{"bdf"},
"application/x-font-ghostscript": []string{"gsf"},
"application/x-font-linux-psf": []string{"psf"},
"application/x-font-otf": []string{"otf"},
"application/x-font-pcf": []string{"pcf"},
"application/x-font-snf": []string{"snf"},
"application/x-font-ttf": []string{"ttf"},
"application/x-font-type1": []string{"pfa"},
"application/x-font-woff": []string{"woff"},
"application/x-futuresplash": []string{"spl"},
"application/x-gnumeric": []string{"gnumeric"},
"application/x-gtar": []string{"gtar"},
"application/x-hdf": []string{"hdf"},
"application/x-java-jnlp-file": []string{"jnlp"},
"application/x-latex": []string{"latex"},
"application/x-mobipocket-ebook": []string{"prc"},
"application/x-ms-application": []string{"application"},
"application/x-ms-wmd": []string{"wmd"},
"application/x-ms-wmz": []string{"wmz"},
"application/x-ms-xbap": []string{"xbap"},
"application/x-msaccess": []string{"mdb"},
"application/x-msbinder": []string{"obd"},
"application/x-mscardfile": []string{"crd"},
"application/x-msclip": []string{"clp"},
"application/x-msdownload": []string{"exe"},
"application/x-msmediaview": []string{"mvb"},
"application/x-msmetafile": []string{"wmf"},
"application/x-msmoney": []string{"mny"},
"application/x-mspublisher": []string{"pub"},
"application/x-msschedule": []string{"scd"},
"application/x-msterminal": []string{"trm"},
"application/x-mswrite": []string{"wri"},
"application/x-netcdf": []string{"nc"},
"application/x-pkcs12": []string{"p12"},
"application/x-pkcs7-certificates": []string{"p7b"},
"application/x-pkcs7-certreqresp": []string{"p7r"},
"application/x-rar-compressed": []string{"rar"},
"application/x-sh": []string{"sh"},
"application/x-shar": []string{"shar"},
"application/x-shockwave-flash": []string{"swf"},
"application/x-silverlight-app": []string{"xap"},
"application/x-stuffit": []string{"sit"},
"application/x-stuffitx": []string{"sitx"},
"application/x-sv4cpio": []string{"sv4cpio"},
"application/x-sv4crc": []string{"sv4crc"},
"application/x-tar": []string{"tar"},
"application/x-tcl": []string{"tcl"},
"application/x-tex": []string{"tex"},
"application/x-tex-tfm": []string{"tfm"},
"application/x-texinfo": []string{"texinfo"},
"application/x-ustar": []string{"ustar"},
"application/x-wais-source": []string{"src"},
"application/x-x509-ca-cert": []string{"der"},
"application/x-xfig": []string{"fig"},
"application/x-xpinstall": []string{"xpi"},
"application/xcap-diff+xml": []string{"xdf"},
"application/xenc+xml": []string{"xenc"},
"application/xhtml+xml": []string{"xhtml"},
"application/xml": []string{"xml"},
"application/xml-dtd": []string{"dtd"},
"application/xop+xml": []string{"xop"},
"application/xslt+xml": []string{"xslt"},
"application/xspf+xml": []string{"xspf"},
"application/xv+xml": []string{"mxml"},
"application/yang": []string{"yang"},
"application/yin+xml": []string{"yin"},
"application/zip": []string{"zip"},
"audio/adpcm": []string{"adp"},
"audio/basic": []string{"au"},
"audio/midi": []string{"mid"},
"audio/mp4": []string{"mp4a"},
"audio/mpeg": []string{"mpga"},
"audio/ogg": []string{"oga"},
"audio/vnd.dece.audio": []string{"uva"},
"audio/vnd.digital-winds": []string{"eol"},
"audio/vnd.dra": []string{"dra"},
"audio/vnd.dts": []string{"dts"},
"audio/vnd.dts.hd": []string{"dtshd"},
"audio/vnd.lucent.voice": []string{"lvp"},
"audio/vnd.ms-playready.media.pya": []string{"pya"},
"audio/vnd.nuera.ecelp4800": []string{"ecelp4800"},
"audio/vnd.nuera.ecelp7470": []string{"ecelp7470"},
"audio/vnd.nuera.ecelp9600": []string{"ecelp9600"},
"audio/vnd.rip": []string{"rip"},
"audio/webm": []string{"weba"},
"audio/x-aac": []string{"aac"},
"audio/x-aiff": []string{"aif"},
"audio/x-mpegurl": []string{"m3u"},
"audio/x-ms-wax": []string{"wax"},
"audio/x-ms-wma": []string{"wma"},
"audio/x-pn-realaudio": []string{"ram"},
"audio/x-pn-realaudio-plugin": []string{"rmp"},
"audio/x-wav": []string{"wav"},
"chemical/x-cdx": []string{"cdx"},
"chemical/x-cif": []string{"cif"},
"chemical/x-cmdf": []string{"cmdf"},
"chemical/x-cml": []string{"cml"},
"chemical/x-csml": []string{"csml"},
"chemical/x-xyz": []string{"xyz"},
"image/bmp": []string{"bmp"},
"image/cgm": []string{"cgm"},
"image/g3fax": []string{"g3"},
"image/gif": []string{"gif"},
"image/ief": []string{"ief"},
"image/jpeg": []string{"jpg", "jpeg"},
"image/ktx": []string{"ktx"},
"image/pjpeg": []string{"pjpeg"},
"image/png": []string{"png"},
"image/prs.btif": []string{"btif"},
"image/svg+xml": []string{"svg"},
"image/tiff": []string{"tiff"},
"image/vnd.adobe.photoshop": []string{"psd"},
"image/vnd.dece.graphic": []string{"uvi"},
"image/vnd.djvu": []string{"djvu"},
"image/vnd.dvb.subtitle": []string{"sub"},
"image/vnd.dwg": []string{"dwg"},
"image/vnd.dxf": []string{"dxf"},
"image/vnd.fastbidsheet": []string{"fbs"},
"image/vnd.fpx": []string{"fpx"},
"image/vnd.fst": []string{"fst"},
"image/vnd.fujixerox.edmics-mmr": []string{"mmr"},
"image/vnd.fujixerox.edmics-rlc": []string{"rlc"},
"image/vnd.ms-modi": []string{"mdi"},
"image/vnd.net-fpx": []string{"npx"},
"image/vnd.wap.wbmp": []string{"wbmp"},
"image/vnd.xiff": []string{"xif"},
"image/webp": []string{"webp"},
"image/x-citrix-jpeg": []string{"jpg", "jpeg"},
"image/x-citrix-png": []string{"png"},
"image/x-cmu-raster": []string{"ras"},
"image/x-cmx": []string{"cmx"},
"image/x-freehand": []string{"fh"},
"image/x-icon": []string{"ico"},
"image/x-pcx": []string{"pcx"},
"image/x-pict": []string{"pic"},
"image/x-png": []string{"png"},
"image/x-portable-anymap": []string{"pnm"},
"image/x-portable-bitmap": []string{"pbm"},
"image/x-portable-graymap": []string{"pgm"},
"image/x-portable-pixmap": []string{"ppm"},
"image/x-rgb": []string{"rgb"},
"image/x-xbitmap": []string{"xbm"},
"image/x-xpixmap": []string{"xpm"},
"image/x-xwindowdump": []string{"xwd"},
"message/rfc822": []string{"eml"},
"model/iges": []string{"igs"},
"model/mesh": []string{"msh"},
"model/vnd.collada+xml": []string{"dae"},
"model/vnd.dwf": []string{"dwf"},
"model/vnd.gdl": []string{"gdl"},
"model/vnd.gtw": []string{"gtw"},
"model/vnd.mts": []string{"mts"},
"model/vnd.vtu": []string{"vtu"},
"model/vrml": []string{"wrl"},
"text/calendar": []string{"ics"},
"text/css": []string{"css"},
"text/csv": []string{"csv"},
"text/html": []string{"html"},
"text/n3": []string{"n3"},
"text/plain": []string{"txt"},
"text/plain-bas": []string{"par"},
"text/prs.lines.tag": []string{"dsc"},
"text/richtext": []string{"rtx"},
"text/sgml": []string{"sgml"},
"text/tab-separated-values": []string{"tsv"},
"text/troff": []string{"t"},
"text/turtle": []string{"ttl"},
"text/uri-list": []string{"uri"},
"text/vnd.curl": []string{"curl"},
"text/vnd.curl.dcurl": []string{"dcurl"},
"text/vnd.curl.mcurl": []string{"mcurl"},
"text/vnd.curl.scurl": []string{"scurl"},
"text/vnd.fly": []string{"fly"},
"text/vnd.fmi.flexstor": []string{"flx"},
"text/vnd.graphviz": []string{"gv"},
"text/vnd.in3d.3dml": []string{"3dml"},
"text/vnd.in3d.spot": []string{"spot"},
"text/vnd.sun.j2me.app-descriptor": []string{"jad"},
"text/vnd.wap.wml": []string{"wml"},
"text/vnd.wap.wmlscript": []string{"wmls"},
"text/x-asm": []string{"s"},
"text/x-c": []string{"c"},
"text/x-fortran": []string{"f"},
"text/x-java-source,java": []string{"java"},
"text/x-pascal": []string{"p"},
"text/x-setext": []string{"etx"},
"text/x-uuencode": []string{"uu"},
"text/x-vcalendar": []string{"vcs"},
"text/x-vcard": []string{"vcf"},
"text/yaml": []string{"yaml"},
"video/3gpp": []string{"3gp"},
"video/3gpp2": []string{"3g2"},
"video/h261": []string{"h261"},
"video/h263": []string{"h263"},
"video/h264": []string{"h264"},
"video/jpeg": []string{"jpgv"},
"video/jpm": []string{"jpm"},
"video/mj2": []string{"mj2"},
"video/mp4": []string{"mp4"},
"video/mpeg": []string{"mpeg"},
"video/ogg": []string{"ogv"},
"video/quicktime": []string{"qt"},
"video/vnd.dece.hd": []string{"uvh"},
"video/vnd.dece.mobile": []string{"uvm"},
"video/vnd.dece.pd": []string{"uvp"},
"video/vnd.dece.sd": []string{"uvs"},
"video/vnd.dece.video": []string{"uvv"},
"video/vnd.fvt": []string{"fvt"},
"video/vnd.mpegurl": []string{"mxu"},
"video/vnd.ms-playready.media.pyv": []string{"pyv"},
"video/vnd.uvvu.mp4": []string{"uvu"},
"video/vnd.vivo": []string{"viv"},
"video/webm": []string{"webm"},
"video/x-f4v": []string{"f4v"},
"video/x-fli": []string{"fli"},
"video/x-flv": []string{"flv"},
"video/x-m4v": []string{"m4v"},
"video/x-ms-asf": []string{"asf"},
"video/x-ms-wm": []string{"wm"},
"video/x-ms-wmv": []string{"wmv"},
"video/x-ms-wmx": []string{"wmx"},
"video/x-ms-wvx": []string{"wvx"},
"video/x-msvideo": []string{"avi"},
"video/x-sgi-movie": []string{"movie"},
"x-conference/x-cooltalk": []string{"ice"},
}
func GetExtensions() map[string][]string {
return extensions
}
func GetExtension(key string) ([]string, error) {
val, ok := extensions[key]
var err error
if !ok {
err = fmt.Errorf("%s does not exist", key)
}
return val, err
}
var mimetypes = map[string][]string{
"3dml": []string{"text/vnd.in3d.3dml"},
"3g2": []string{"video/3gpp2"},
"3gp": []string{"video/3gpp"},
"7z": []string{"application/x-7z-compressed"},
"aab": []string{"application/x-authorware-bin"},
"aac": []string{"audio/x-aac"},
"aam": []string{"application/x-authorware-map"},
"aas": []string{"application/x-authorware-seg"},
"abw": []string{"application/x-abiword"},
"ac": []string{"application/pkix-attr-cert"},
"acc": []string{"application/vnd.americandynamics.acc"},
"ace": []string{"application/x-ace-compressed"},
"acu": []string{"application/vnd.acucobol"},
"adp": []string{"audio/adpcm"},
"aep": []string{"application/vnd.audiograph"},
"afp": []string{"application/vnd.ibm.modcap"},
"ahead": []string{"application/vnd.ahead.space"},
"ai": []string{"application/postscript"},
"aif": []string{"audio/x-aiff"},
"air": []string{"application/vnd.adobe.air-application-installer-package+zip"},
"ait": []string{"application/vnd.dvb.ait"},
"ami": []string{"application/vnd.amiga.ami"},
"apk": []string{"application/vnd.android.package-archive"},
"application": []string{"application/x-ms-application"},
"apr": []string{"application/vnd.lotus-approach"},
"asf": []string{"video/x-ms-asf"},
"aso": []string{"application/vnd.accpac.simply.aso"},
"atc": []string{"application/vnd.acucorp"},
"atom": []string{"application/atom+xml"},
"xml": []string{"application/atom+xml", "application/rss+xml", "application/xml"},
"atomcat": []string{"application/atomcat+xml"},
"atomsvc": []string{"application/atomsvc+xml"},
"atx": []string{"application/vnd.antix.game-component"},
"au": []string{"audio/basic"},
"avi": []string{"video/x-msvideo"},
"aw": []string{"application/applixware"},
"azf": []string{"application/vnd.airzip.filesecure.azf"},
"azs": []string{"application/vnd.airzip.filesecure.azs"},
"azw": []string{"application/vnd.amazon.ebook"},
"bcpio": []string{"application/x-bcpio"},
"bdf": []string{"application/x-font-bdf"},
"bdm": []string{"application/vnd.syncml.dm+wbxml"},
"bed": []string{"application/vnd.realvnc.bed"},
"bh2": []string{"application/vnd.fujitsu.oasysprs"},
"bin": []string{"application/octet-stream"},
"bmi": []string{"application/vnd.bmi"},
"bmp": []string{"image/bmp"},
"box": []string{"application/vnd.previewsystems.box"},
"btif": []string{"image/prs.btif"},
"bz": []string{"application/x-bzip"},
"bz2": []string{"application/x-bzip2"},
"c": []string{"text/x-c"},
"c11amc": []string{"application/vnd.cluetrust.cartomobile-config"},
"c11amz": []string{"application/vnd.cluetrust.cartomobile-config-pkg"},
"c4g": []string{"application/vnd.clonk.c4group"},
"cab": []string{"application/vnd.ms-cab-compressed"},
"car": []string{"application/vnd.curl.car"},
"cat": []string{"application/vnd.ms-pki.seccat"},
"ccxml": []string{"application/ccxml+xml,"},
"cdbcmsg": []string{"application/vnd.contact.cmsg"},
"cdkey": []string{"application/vnd.mediastation.cdkey"},
"cdmia": []string{"application/cdmi-capability"},
"cdmic": []string{"application/cdmi-container"},
"cdmid": []string{"application/cdmi-domain"},
"cdmio": []string{"application/cdmi-object"},
"cdmiq": []string{"application/cdmi-queue"},
"cdx": []string{"chemical/x-cdx"},
"cdxml": []string{"application/vnd.chemdraw+xml"},
"cdy": []string{"application/vnd.cinderella"},
"cer": []string{"application/pkix-cert"},
"cgm": []string{"image/cgm"},
"chat": []string{"application/x-chat"},
"chm": []string{"application/vnd.ms-htmlhelp"},
"chrt": []string{"application/vnd.kde.kchart"},
"cif": []string{"chemical/x-cif"},
"cii": []string{"application/vnd.anser-web-certificate-issue-initiation"},
"cil": []string{"application/vnd.ms-artgalry"},
"cla": []string{"application/vnd.claymore"},
"class": []string{"application/java-vm"},
"clkk": []string{"application/vnd.crick.clicker.keyboard"},
"clkp": []string{"application/vnd.crick.clicker.palette"},
"clkt": []string{"application/vnd.crick.clicker.template"},
"clkw": []string{"application/vnd.crick.clicker.wordbank"},
"clkx": []string{"application/vnd.crick.clicker"},
"clp": []string{"application/x-msclip"},
"cmc": []string{"application/vnd.cosmocaller"},
"cmdf": []string{"chemical/x-cmdf"},
"cml": []string{"chemical/x-cml"},
"cmp": []string{"application/vnd.yellowriver-custom-menu"},
"cmx": []string{"image/x-cmx"},
"cod": []string{"application/vnd.rim.cod"},
"cpio": []string{"application/x-cpio"},
"cpt": []string{"application/mac-compactpro"},
"crd": []string{"application/x-mscardfile"},
"crl": []string{"application/pkix-crl"},
"cryptonote": []string{"application/vnd.rig.cryptonote"},
"csh": []string{"application/x-csh"},
"csml": []string{"chemical/x-csml"},
"csp": []string{"application/vnd.commonspace"},
"css": []string{"text/css"},
"csv": []string{"text/csv"},
"cu": []string{"application/cu-seeme"},
"curl": []string{"text/vnd.curl"},
"cww": []string{"application/prs.cww"},
"dae": []string{"model/vnd.collada+xml"},
"daf": []string{"application/vnd.mobius.daf"},
"davmount": []string{"application/davmount+xml"},
"dcurl": []string{"text/vnd.curl.dcurl"},
"dd2": []string{"application/vnd.oma.dd2+xml"},
"ddd": []string{"application/vnd.fujixerox.ddd"},
"deb": []string{"application/x-debian-package"},
"der": []string{"application/x-x509-ca-cert"},
"dfac": []string{"application/vnd.dreamfactory"},
"dir": []string{"application/x-director"},
"dis": []string{"application/vnd.mobius.dis"},
"djvu": []string{"image/vnd.djvu"},
"dmg": []string{"application/x-apple-diskimage"},
"dna": []string{"application/vnd.dna"},
"doc": []string{"application/msword"},
"docm": []string{"application/vnd.ms-word.document.macroenabled.12"},
"docx": []string{"application/vnd.openxmlformats-officedocument.wordprocessingml.document"},
"dotm": []string{"application/vnd.ms-word.template.macroenabled.12"},
"dotx": []string{"application/vnd.openxmlformats-officedocument.wordprocessingml.template"},
"dp": []string{"application/vnd.osgi.dp"},
"dpg": []string{"application/vnd.dpgraph"},
"dra": []string{"audio/vnd.dra"},
"dsc": []string{"text/prs.lines.tag"},
"dssc": []string{"application/dssc+der"},
"dtb": []string{"application/x-dtbook+xml"},
"dtd": []string{"application/xml-dtd"},
"dts": []string{"audio/vnd.dts"},
"dtshd": []string{"audio/vnd.dts.hd"},
"dvi": []string{"application/x-dvi"},
"dwf": []string{"model/vnd.dwf"},
"dwg": []string{"image/vnd.dwg"},
"dxf": []string{"image/vnd.dxf"},
"dxp": []string{"application/vnd.spotfire.dxp"},
"ecelp4800": []string{"audio/vnd.nuera.ecelp4800"},
"ecelp7470": []string{"audio/vnd.nuera.ecelp7470"},
"ecelp9600": []string{"audio/vnd.nuera.ecelp9600"},
"edm": []string{"application/vnd.novadigm.edm"},
"edx": []string{"application/vnd.novadigm.edx"},
"efif": []string{"application/vnd.picsel"},
"ei6": []string{"application/vnd.pg.osasli"},
"eml": []string{"message/rfc822"},
"emma": []string{"application/emma+xml"},
"eol": []string{"audio/vnd.digital-winds"},
"eot": []string{"application/vnd.ms-fontobject"},
"epub": []string{"application/epub+zip"},
"es": []string{"application/ecmascript"},
"es3": []string{"application/vnd.eszigno3+xml"},
"esf": []string{"application/vnd.epson.esf"},
"etx": []string{"text/x-setext"},
"exe": []string{"application/x-msdownload"},
"exi": []string{"application/exi"},
"ext": []string{"application/vnd.novadigm.ext"},
"ez2": []string{"application/vnd.ezpix-album"},
"ez3": []string{"application/vnd.ezpix-package"},
"f": []string{"text/x-fortran"},
"f4v": []string{"video/x-f4v"},
"fbs": []string{"image/vnd.fastbidsheet"},
"fcs": []string{"application/vnd.isac.fcs"},
"fdf": []string{"application/vnd.fdf"},
"fe_launch": []string{"application/vnd.denovo.fcselayout-link"},
"fg5": []string{"application/vnd.fujitsu.oasysgp"},
"fh": []string{"image/x-freehand"},
"fig": []string{"application/x-xfig"},
"fli": []string{"video/x-fli"},
"flo": []string{"application/vnd.micrografx.flo"},
"flv": []string{"video/x-flv"},
"flw": []string{"application/vnd.kde.kivio"},
"flx": []string{"text/vnd.fmi.flexstor"},
"fly": []string{"text/vnd.fly"},
"fm": []string{"application/vnd.framemaker"},
"fnc": []string{"application/vnd.frogans.fnc"},
"fpx": []string{"image/vnd.fpx"},
"fsc": []string{"application/vnd.fsc.weblaunch"},
"fst": []string{"image/vnd.fst"},
"ftc": []string{"application/vnd.fluxtime.clip"},
"fti": []string{"application/vnd.anser-web-funds-transfer-initiation"},
"fvt": []string{"video/vnd.fvt"},
"fxp": []string{"application/vnd.adobe.fxp"},
"fzs": []string{"application/vnd.fuzzysheet"},
"g2w": []string{"application/vnd.geoplan"},
"g3": []string{"image/g3fax"},
"g3w": []string{"application/vnd.geospace"},
"gac": []string{"application/vnd.groove-account"},
"gdl": []string{"model/vnd.gdl"},
"geo": []string{"application/vnd.dynageo"},
"gex": []string{"application/vnd.geometry-explorer"},
"ggb": []string{"application/vnd.geogebra.file"},
"ggt": []string{"application/vnd.geogebra.tool"},
"ghf": []string{"application/vnd.groove-help"},
"gif": []string{"image/gif"},
"gim": []string{"application/vnd.groove-identity-message"},
"gmx": []string{"application/vnd.gmx"},
"gnumeric": []string{"application/x-gnumeric"},
"gph": []string{"application/vnd.flographit"},
"gqf": []string{"application/vnd.grafeq"},
"gram": []string{"application/srgs"},
"grv": []string{"application/vnd.groove-injector"},
"grxml": []string{"application/srgs+xml"},
"gsf": []string{"application/x-font-ghostscript"},
"gtar": []string{"application/x-gtar"},
"gtm": []string{"application/vnd.groove-tool-message"},
"gtw": []string{"model/vnd.gtw"},
"gv": []string{"text/vnd.graphviz"},
"gxt": []string{"application/vnd.geonext"},
"h261": []string{"video/h261"},
"h263": []string{"video/h263"},
"h264": []string{"video/h264"},
"hal": []string{"application/vnd.hal+xml"},
"hbci": []string{"application/vnd.hbci"},
"hdf": []string{"application/x-hdf"},
"hlp": []string{"application/winhlp"},
"hpgl": []string{"application/vnd.hp-hpgl"},
"hpid": []string{"application/vnd.hp-hpid"},
"hps": []string{"application/vnd.hp-hps"},
"hqx": []string{"application/mac-binhex40"},
"htke": []string{"application/vnd.kenameaapp"},
"html": []string{"text/html"},
"hvd": []string{"application/vnd.yamaha.hv-dic"},
"hvp": []string{"application/vnd.yamaha.hv-voice"},
"hvs": []string{"application/vnd.yamaha.hv-script"},
"i2g": []string{"application/vnd.intergeo"},
"icc": []string{"application/vnd.iccprofile"},
"ice": []string{"x-conference/x-cooltalk"},
"ico": []string{"image/x-icon"},
"ics": []string{"text/calendar"},
"ief": []string{"image/ief"},
"ifm": []string{"application/vnd.shana.informed.formdata"},
"igl": []string{"application/vnd.igloader"},
"igm": []string{"application/vnd.insors.igm"},
"igs": []string{"model/iges"},
"igx": []string{"application/vnd.micrografx.igx"},
"iif": []string{"application/vnd.shana.informed.interchange"},
"imp": []string{"application/vnd.accpac.simply.imp"},
"ims": []string{"application/vnd.ms-ims"},
"ipfix": []string{"application/ipfix"},
"ipk": []string{"application/vnd.shana.informed.package"},
"irm": []string{"application/vnd.ibm.rights-management"},
"irp": []string{"application/vnd.irepository.package+xml"},
"itp": []string{"application/vnd.shana.informed.formtemplate"},
"ivp": []string{"application/vnd.immervision-ivp"},
"ivu": []string{"application/vnd.immervision-ivu"},
"jad": []string{"text/vnd.sun.j2me.app-descriptor"},
"jam": []string{"application/vnd.jam"},
"jar": []string{"application/java-archive"},
"java": []string{"text/x-java-source,java"},
"jisp": []string{"application/vnd.jisp"},
"jlt": []string{"application/vnd.hp-jlyt"},
"jnlp": []string{"application/x-java-jnlp-file"},
"joda": []string{"application/vnd.joost.joda-archive"},
"jpeg": []string{"image/jpeg", "image/x-citrix-jpeg"},
"jpg": []string{"image/jpeg", "image/x-citrix-jpeg"},
"jpgv": []string{"video/jpeg"},
"jpm": []string{"video/jpm"},
"js": []string{"application/javascript"},
"json": []string{"application/json"},
"karbon": []string{"application/vnd.kde.karbon"},
"kfo": []string{"application/vnd.kde.kformula"},
"kia": []string{"application/vnd.kidspiration"},
"kml": []string{"application/vnd.google-earth.kml+xml"},
"kmz": []string{"application/vnd.google-earth.kmz"},
"kne": []string{"application/vnd.kinar"},
"kon": []string{"application/vnd.kde.kontour"},
"kpr": []string{"application/vnd.kde.kpresenter"},
"ksp": []string{"application/vnd.kde.kspread"},
"ktx": []string{"image/ktx"},
"ktz": []string{"application/vnd.kahootz"},
"kwd": []string{"application/vnd.kde.kword"},
"lasxml": []string{"application/vnd.las.las+xml"},
"latex": []string{"application/x-latex"},
"lbd": []string{"application/vnd.llamagraphics.life-balance.desktop"},
"lbe": []string{"application/vnd.llamagraphics.life-balance.exchange+xml"},
"les": []string{"application/vnd.hhe.lesson-player"},
"link66": []string{"application/vnd.route66.link66+xml"},
"lrm": []string{"application/vnd.ms-lrm"},
"ltf": []string{"application/vnd.frogans.ltf"},
"lvp": []string{"audio/vnd.lucent.voice"},
"lwp": []string{"application/vnd.lotus-wordpro"},
"m21": []string{"application/mp21"},
"m3u": []string{"audio/x-mpegurl"},
"m3u8": []string{"application/vnd.apple.mpegurl"},