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

Forums / General Discussions / Retrieve real file extension

Retrieve real file extension

2 posts, 1 answered
  1. Alain Eid
    Alain Eid avatar
    1 posts
    Registered:
    25 Sep 2009
    19 Mar 2010
    Link to this post
    Hi,

    How can we retrieve programatically (C#)  the document, image, video real extensions after they have been uploaded to their corresponding libraries.

    Thanks,
    Alain
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    19 Mar 2010
    Link to this post
    Hello Alain Eid,

    Thank you for using our services.

    For each item uploaded in the Images and Documents module we store the extension in a metafield called extension. Once you get the specific content item you can get the data from the metafield. These two blogs sample how to get extensions and mimetypes:
    http://www.sitefinity.com/blogs/radoslavgeorgiev/posts/10-03-03/send_items_from_images_and_documents_module_as_e-mail_attachments.aspx
    http://www.sitefinity.com/blogs/ivandimitrov/ivanposts/10-01-31/save_images_from_the_images_and_documents_module_back_to_the_file_system.aspx

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
    Answered
2 posts, 1 answered