Page 1 of 1

Common file extensions - how many can you think of?

Posted: Fri Dec 19, 2008 10:41 pm
by Chris Corbyn
I'm crowd-sourcing here, because 100 heads are better than 3 ;)

This is easy, all I want people to do is list as many "common" file extensions as they can think of. Please don't get obscure, just keep it to everyday file types. There's also no need to list the mime-type, just the extension(s) that are used.

This is for Swift Mailer and the list needs to be kept reasonably short (as in, under 1000 or so) or it just gets silly. There will be a fallback so a user can override/specify the content-type manually, I just want some automation for the obvious types.

I'll start off with what I've got so far:

* JPEG/JPG
* PNG
* GIF
* BMP
* TIFF/TIF
* ZIP
* GZ
* BZ2
* MP3
* WMA
* OGG
* WAV
* MPEG/MPG
* MP4/M4V/M4A
* AVI
* MOV
* WMV
* MS DOC/DOCX
* MS XLS
* MS PPT
* RFC822/EML
* PDF
* PS
* HTML
* TXT
* XML
* EXE
* DMG
* ISO
* RAR
* TAR
* STUFFIT/SIT
* FLV
* PSD
* EPS

Re: Common file extensions - how many can you think of?

Posted: Fri Dec 19, 2008 11:13 pm
by John Cartwright
Is .php common enough?

Re: Common file extensions - how many can you think of?

Posted: Sat Dec 20, 2008 2:49 am
by Chris Corbyn
I guess... though I can't think of many everyday situations where you'd attach one to an email :)

My list must have been pretty good! VCARD/VFC is another I can think of.

EDIT | and CSV

Re: Common file extensions - how many can you think of?

Posted: Sat Dec 20, 2008 5:51 am
by robincanaday
.CDR
.TTF (and other font file extensions)
.AI
.ODS (and other Open Office extensions)

I'm mostly thinking in terms of files commonly sent for graphic design...

Re: Common file extensions - how many can you think of?

Posted: Sat Dec 20, 2008 6:53 am
by VladSun
RTF
HTML/HTM
VBS,JS,REG,DLL :twisted: :twisted: :twisted:
SQL
JAR
MDB
LOG
CONF

Re: Common file extensions - how many can you think of?

Posted: Sat Dec 20, 2008 10:56 am
by John Cartwright
Chris Corbyn wrote:I guess... though I can't think of many everyday situations where you'd attach one to an email :)

My list must have been pretty good! VCARD/VFC is another I can think of.

EDIT | and CSV
Sorry, I didn't make it obviously sarcastic. :) The list looks pretty good. I couldn't come up with any other obvious ones.

Re: Common file extensions - how many can you think of?

Posted: Sat Dec 20, 2008 11:04 am
by alex.barylski

Re: Common file extensions - how many can you think of?

Posted: Sat Dec 20, 2008 6:44 pm
by Chris Corbyn
Thanks guys, I think I've got enough now :) This is a config file so it can be added to with ease.

Code: Select all

array(
  'aif'  => 'audio/x-aiff',
  'aiff' => 'audio/x-aiff',
  'avi'  => 'video/avi',
  'bmp'  => 'image/bmp',
  'bz2'  => 'application/x-bz2',
  'csv'  => 'text/csv',
  'dmg'  => 'application/x-apple-diskimage',
  'doc'  => 'application/msword',
  'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  'eml'  => 'message/rfc822',
  'aps'  => 'application/postscript',
  'exe'  => 'application/x-ms-dos-executable',
  'flv'  => 'video/x-flv',
  'gif'  => 'image/gif',
  'gz'   => 'application/x-gzip',
  'hqx'  => 'application/stuffit',
  'htm'  => 'text/html',
  'html' => 'text/html',
  'jar'  => 'application/x-java-archive',
  'jpeg' => 'image/jpeg',
  'jpg'  => 'image/jpeg',
  'm3u'  => 'audio/x-mpegurl',
  'm4a'  => 'audio/mp4',
  'mdb'  => 'application/x-msaccess',
  'mid'  => 'audio/midi',
  'midi' => 'audio/midi',
  'mov'  => 'video/quicktime',
  'mp3'  => 'audio/mpeg',
  'mp4'  => 'video/mp4',
  'mpeg' => 'video/mpeg',
  'mpg'  => 'video/mpeg',
  'odg'  => 'vnd.oasis.opendocument.graphics',
  'odp'  => 'vnd.oasis.opendocument.presentation',
  'odt'  => 'vnd.oasis.opendocument.text',
  'ods'  => 'vnd.oasis.opendocument.spreadsheet',
  'ogg'  => 'audio/ogg',
  'pdf'  => 'application/pdf',
  'png'  => 'image/png',
  'ppt'  => 'application/vnd.ms-powerpoint',
  'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
  'ps'   => 'application/postscript',
  'rar'  => 'application/x-rar-compressed',
  'rtf'  => 'application/rtf',
  'tar'  => 'application/x-tar',
  'sit'  => 'application/x-stuffit',
  'svg'  => 'image/svg+xml',
  'tif'  => 'image/tiff',
  'tiff' => 'image/tiff',
  'ttf'  => 'application/x-font-truetype',
  'txt'  => 'text/plain',
  'vcf'  => 'text/x-vcard',
  'wav'  => 'audio/wav',
  'wma'  => 'audio/x-ms-wma',
  'wmv'  => 'audio/x-ms-wmv',
  'xls'  => 'application/excel',
  'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  'xml'  => 'application/xml',
  'zip'  => 'application/zip'
);

Re: Common file extensions - how many can you think of?

Posted: Sun Dec 21, 2008 12:50 am
by josh
.flac
.psd
.fla

Re: Common file extensions - how many can you think of?

Posted: Sun Dec 21, 2008 1:08 am
by Eran
.msi
.ini

Re: Common file extensions - how many can you think of?

Posted: Sun Dec 21, 2008 1:28 am
by josh
Let's turn this into a drinking game :twisted: Take turns naming file extensions, if you can't think of one take 1 shot, if you say one thats already been said take 2 shots... hahah