More than "default" filetypes? More than "default" filetypes?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

More than "default" filetypes?

Started by abel6669, July 09, 2010, 04:10:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

abel6669

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 :)

Joachim Müller

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

Αndré

Additionally you'll have to add those filetypes using the File types editor plugin.

abel6669

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

Αndré

Works for me as expected. Please attach screen shots of Coppermine's file type setting and the list of the plugin.

abel6669

are those ok?

Αndré

I used 'text/plain' as mime type. Maybe it works if you adjust it.

abel6669

Yeah that worked..Thanks everso much :).

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


phill104

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
It is a mistake to think you can solve any major problems just with potatoes.