forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 upload => Topic started by: abel6669 on July 09, 2010, 04:10:25 am

Title: More than "default" filetypes?
Post by: abel6669 on July 09, 2010, 04:10:25 am
I have a website with coppermine being used for the gallery..and I want to upload different file types, such as: .eng files, .spr files and .mpr files... I have tried updating the list in the config, but still get the same old message : "only these filetypes are allowed......"

link: http://realracers.co.cc/gallery

Please help :)
Title: Re: More than "default" filetypes?
Post by: Joachim Müller on July 09, 2010, 07:44:31 am
Don't specify those files as image files - Coppermine tries to create thumbnails from images uploaded, and it can only accomplish that for a limited set of file types that depends on the image library you use specify in "method for resizing images" in Coppermine's config: you can only specify GD (which comes with support for jpg, png, gif) or ImageMagick (which supportes jpg, png, gif, bmp and tif basically).
The files you try to upload are not images in this aspect: a browser can not natively display them, that's why you have to "tell" Coppermine that they are other documents. You do so with the config field "Allowed document types (http://documentation.coppermine-gallery.net/en/configuration.htm#admin_picture_thumb_advanced_doc_extensions)". The idea behind that is that Coppermine doesn't try to display those files on the screen, but just displays a (generic) thumbnail and when clicked on let's the visitor download that file.
Title: Re: More than "default" filetypes?
Post by: Αndré on July 09, 2010, 08:46:00 am
Additionally you'll have to add those filetypes using the File types editor plugin (http://forum.coppermine-gallery.net/index.php/topic,59917.0.html).
Title: Re: More than "default" filetypes?
Post by: abel6669 on July 09, 2010, 06:11:06 pm
after uploading the plugin and installing..and editing the "allowed file types" in config to allow .lyt files (added without . on the list)..oh and deleting all the new types and adding "lyt" with the mime type "application/lfs"(not sure what it is really)..when I try to upload a file called "AS1__.lyt" i get the following message: Error
Only files with the following extensions are accepted: lyt
Title: Re: More than "default" filetypes?
Post by: Αndré on July 09, 2010, 06:42:47 pm
Works for me as expected. Please attach screen shots of Coppermine's file type setting and the list of the plugin.
Title: Re: More than "default" filetypes?
Post by: abel6669 on July 09, 2010, 07:02:53 pm
are those ok?
Title: Re: More than "default" filetypes?
Post by: Αndré on July 09, 2010, 07:12:45 pm
I used 'text/plain' as mime type. Maybe it works if you adjust it.
Title: Re: More than "default" filetypes?
Post by: abel6669 on July 09, 2010, 07:51:43 pm
Yeah that worked..Thanks everso much :).

Should i set all my custom FT's as "text/plain"? (.set /.mpr / .spr  / .eng )

Title: Re: More than "default" filetypes?
Post by: phill104 on July 09, 2010, 08:36:13 pm
That depends on the filetype. Try googleing the extention followed by mime type.

Here is a handy list, extensive but not all are listed - http://www.webmaster-toolkit.com/mime-types.shtml

Finally, please resolve your threads by ticking the little tick mark - http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631