Sha256: 9772a6fd6cd58556b11079360acb6e7b4cf2920e811c9f07a8cec296617bee19

Contents?: true

Size: 1.26 KB

Versions: 47

Compression:

Stored size: 1.26 KB

Contents

# frozen_string_literal: true

module Alchemy
  module Filetypes
    ARCHIVE_FILE_TYPES = ["application/zip", "application/x-rar"]

    AUDIO_FILE_TYPES = [
      "audio/mpeg",
      "audio/mp4",
      "audio/wav",
      "audio/x-wav"
    ]

    IMAGE_FILE_TYPES = [
      "image/gif",
      "image/jpeg",
      "image/png",
      "image/svg+xml",
      "image/tiff",
      "image/x-psd"
    ]

    VCARD_FILE_TYPES = ["text/x-vcard", "application/vcard"]

    VIDEO_FILE_TYPES = [
      "application/x-flash-video",
      "video/x-flv",
      "video/mp4",
      "video/mpeg",
      "video/quicktime",
      "video/x-msvideo",
      "video/x-ms-wmv"
    ]

    TEXT_FILE_TYPES = [
      "application/rtf",
      "text/plain"
    ]

    EXCEL_FILE_TYPES = [
      "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
      "application/vnd.ms-excel",
      "application/msexcel",
      "text/csv"
    ]

    WORD_FILE_TYPES = [
      "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
      "application/vnd.ms-word",
      "application/msword"
    ]

    POWERPOINT_FILE_TYPES = [
      "application/vnd.openxmlformats-officedocument.presentationml.presentation",
      "application/vnd.ms-powerpoint",
      "application/mspowerpoint"
    ]
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
alchemy_cms-7.3.4 lib/alchemy/filetypes.rb
alchemy_cms-7.3.3 lib/alchemy/filetypes.rb
alchemy_cms-7.3.2 lib/alchemy/filetypes.rb
alchemy_cms-7.2.7 lib/alchemy/filetypes.rb
alchemy_cms-7.3.1 lib/alchemy/filetypes.rb
alchemy_cms-7.3.0 lib/alchemy/filetypes.rb
alchemy_cms-7.2.6 lib/alchemy/filetypes.rb
alchemy_cms-7.2.5 lib/alchemy/filetypes.rb
alchemy_cms-7.1.12 lib/alchemy/filetypes.rb
alchemy_cms-7.0.15 lib/alchemy/filetypes.rb
alchemy_cms-7.2.4 lib/alchemy/filetypes.rb
alchemy_cms-7.1.11 lib/alchemy/filetypes.rb
alchemy_cms-7.2.3 lib/alchemy/filetypes.rb
alchemy_cms-7.1.10 lib/alchemy/filetypes.rb
alchemy_cms-7.2.2 lib/alchemy/filetypes.rb
alchemy_cms-7.1.9 lib/alchemy/filetypes.rb
alchemy_cms-7.0.14 lib/alchemy/filetypes.rb
alchemy_cms-7.2.1 lib/alchemy/filetypes.rb
alchemy_cms-7.0.13 lib/alchemy/filetypes.rb
alchemy_cms-7.1.8 lib/alchemy/filetypes.rb