[Clipart] ccHost - how to add file types

Tobias Jakobs tobias.jakobs at web.de
Sun Feb 12 12:19:54 PST 2006


Am Sonntag, den 12.02.2006, 09:35 -0800 schrieb Bryce Harrington:
> I found where we add file types:  It's in cchost/cclib/cc-getid3.php, in
> list of code elements like this:
> 
> 
>          $file_formats['audio-aiff-aiff'] =  array(
>            'name'       => 'aif',
>            'description' => 'AIFF Audio',
>            'enabled' => true,
>            'mediatype' => 'audio',
>            );
> 
> 
> Could someone create the list of file formats that Open Clip Art Library
> users will be uploading?  Looks like we need the mimetype as well as the
> extension.
> 

        $file_formats['image-svg'] =  array(
          'name'       => 'svg',
          'description' => 'Scalable Vector Graphics',
          'enabled' => true,
          'mediatype' => 'image',
          );

        $file_formats['image-svgz'] =  array(
          'name'       => 'svgz',
          'description' => 'Scalable Vector Graphics gzip-compressed',
          'enabled' => true,
          'mediatype' => 'image',
          );

For SVG the mimetype is:
MIME media type name: image 
MIME subtype name: svg+xml 

Some links:
http://wiki.svg.org/index.php?title=Server_Configuration
http://www.w3.org/TR/SVGMobile12/mimereg.html
http://www.webmaster-toolkit.com/mime-types.shtml

Other Filetypes we may use:

.pdf application/pdf
.wmf windows/metafile

.gz application/gzip
.zip application/zip
.zip application/x-compressed
.zip application/x-zip-compressed 
.zip multipart/x-zip

.gtar application/x-gtar
.gz application/x-compressed 
.gz application/x-gzip 
.gzip application/x-gzip 
.gzip multipart/x-gzip
.tar application/x-tar
.tgz application/gnutar 
.tgz application/x-compressed
.bz application/x-bzip 
.bz2 application/x-bzip2




More information about the clipart mailing list