1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Libraries and Mime Types

Libraries and Mime Types

4 posts, 0 answered
  1. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    26 Oct 2009
    Link to this post
    Hi I require my videos to be in flv format to make use of the third party video play controls I use. This works great when I open the database up and change the mime type to video/x-flv so the end application knows how to deal with the files, however what I really need to do is have this set automaticily when a file is uploaded. How would I acheive this? Also I really need to be able to either generate or upload a thumbnail of these videos to be displayed in the control before playing. What is the best way to link an image to a video (or as far as SiteFinity is concened a random binary file)?

    Thanks
    Nigel
  2. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    01 Jun 2017
    26 Oct 2009
    Link to this post
    Hello Nigel,

    All MimeTypes inside Sitefinity are contained within a HashTable. The problem is that we forgot to add the MimeType for .flv files. This will be fixed in our next ServicePack Release.

    About your second question the item thumbnail is set inside the provider so in order to create your own thumbnail you will have to override the provider it self.

    Regards,
    Nikolai
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    26 Oct 2009
    Link to this post
    Thanks, I will manually reset the Mime types for now (I don't want to override the provider at this time).

    As for the thumbnails have decided to add a meta data called preview image that I will look for when dealing with files of this type (gotta love hard coded solutions :)), however I have tried using the ImageSelector however this is not the right control for the job as it is the contents of the dialog, not the textbox and button that opens the dialog. Which control should I be using for this?
  4. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
Register for webinar
4 posts, 0 answered