[Clipart] ccHost - how to add file types

Bryce Harrington bryce at bryceharrington.org
Wed Feb 15 12:06:55 PST 2006


Thanks for gathering this info Tobias!  It looks like I need to do some
additional work to getid3 before plugging this in, but what you've done
addresses one chunk of the task.  I'll apply this when I next work on
ccHost, probably this weekend.

Bryce

On Sun, Feb 12, 2006 at 09:19:54PM +0100, Tobias Jakobs wrote:
> 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
> 
> _______________________________________________
> clipart mailing list
> clipart at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/clipart



More information about the clipart mailing list