Module: Alchemy::Filetypes

Included in:
Admin::AttachmentsHelper, Attachment
Defined in:
lib/alchemy/filetypes.rb

Constant Summary collapse

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"
]