how to identify the extension/type of the file using C#?
<p>i have a workflow where user is allowed to upload any file and then that file will be read. </p>

<p>Now my question is if user have image file xyz.jpg and he renamed it to xyz only (extension removed) in this can we still get the type/extension of the file using/reading files data/metadata.</p>

<p>Thanks all</p>
