mime and new filetypes

chris!

Joined: 2005-01-18
Posts: 5
Posted: Tue, 2005-01-18 15:51

i tried to add a thumbnail for *.ufo (Ulead Photo Impact) files in g2.
i went to "site admin", "thumbnails" and added "application/ufo" by hand in the box with the name " Default thumbnail for mime type: " after that i choosed a selfmade thumb-pic and everything seemed to be pretty fine.
but it wasn´t.
when i add *.ufo files, the selfmade thumb does not appear. did i something wrong?
many thanks in advance to all of you!
chris!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-01-18 18:43

is your browser sending the file as "application/ufo" mime type? most likely G2 is assigning some other mime type to the uploaded file. you can edit the mime type list in modules/core/classes/helpers/MimeHelper_simple.class to make G2 recognize the mime type by the file extension.

 
chris!

Joined: 2005-01-18
Posts: 5
Posted: Tue, 2005-01-18 21:34

i am not shure if the browser does. for the upload of the files i use a ftp-client. but i will edit the mentioned file and report if i have success.

 
chris!

Joined: 2005-01-18
Posts: 5
Posted: Wed, 2005-01-19 08:56

i modified "MIMEHelper_simple.class" and now it works perfectly.
admittedly i had to upload the file once again because the recreation of the thumbnails did not change the appearence of the already uploaded .ufo files.
but this is not a problem at all.
thank you very much for your help.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2005-01-19 17:49

I created a new task for this.