more-mimetypes.patch

Anonymous, 2019-09-26 07:40

Download (956 Bytes)

View differences:

lib/redmine/mime_type.rb (working copy)
40 40
      'text/csv' => 'csv',
41 41
      'text/x-po' => 'po',
42 42
      'image/gif' => 'gif',
43
      'image/jpeg' => 'jpg,jpeg,jpe',
43
      'image/jpeg' => 'jpg,jpeg,jpe,jfif,pjpeg,pjp',
44 44
      'image/png' => 'png',
45 45
      'image/tiff' => 'tiff,tif',
46
      'image/apng' => 'apng',
46 47
      'image/x-ms-bmp' => 'bmp',
48
      'image/svg+xml' => 'svg',
49
      'image/webp' => 'webp',
50
      'image/x-icon' => 'ico,cur',
47 51
      'application/javascript' => 'js',
48 52
      'application/pdf' => 'pdf',
49 53
      'video/mp4' => 'mp4',
50 54
      'video/webm' => 'webm',
55
      'audio/ogg' => 'ogg',
56
      'audio/mpeg' => 'mp3',
57
      'audio/wave' => 'wav',
58
      'audio/flac' => 'flac'
51 59
    }.freeze
52 60

  
53 61
    EXTENSIONS = MIME_TYPES.inject({}) do |map, (type, exts)|