Advanced search  

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]

Pages: [1]   Go Down

Author Topic: More than "default" filetypes?  (Read 8409 times)

0 Members and 1 Guest are viewing this topic.

abel6669

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
More than "default" filetypes?
« 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 :)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: More than "default" filetypes?
« Reply #1 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". 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: More than "default" filetypes?
« Reply #2 on: July 09, 2010, 08:46:00 am »

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

abel6669

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: More than "default" filetypes?
« Reply #3 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: More than "default" filetypes?
« Reply #4 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.
Logged

abel6669

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: More than "default" filetypes?
« Reply #5 on: July 09, 2010, 07:02:53 pm »

are those ok?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: More than "default" filetypes?
« Reply #6 on: July 09, 2010, 07:12:45 pm »

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

abel6669

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: More than "default" filetypes?
« Reply #7 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 )

Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4826
    • Windsurf.me
Re: More than "default" filetypes?
« Reply #8 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
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.