More in this section
Forums / General Discussions / Retrieve real file extension

Retrieve real file extension

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 1 answered
  1. Alain Eid
    Alain Eid avatar
    1 posts
    25 Sep 2009
    19 Mar 2010
    Link to this post

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

  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    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:

    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.
2 posts, 1 answered