How to retrive "Last Modified Date" of uploaded file in ASP.Net
<p>I am developing a website, in which client uploads some document files like doc, docx, htm, html, txt, pdf etc. I want to retrieve last modified date of an uploaded file. I have created one handler(.ashx) which does the job of saving the files.</p>

<pre><code>Following is the code:
HttpPostedFile file = context.Request.Files[i];                                 
string fileName = file.FileName;                               
file.SaveAs(Path.Combine(uploadPath, filename));
</code></pre>

<p>As you can see, its very simple to save the file using file.SaveAs() method. But this HttpPostedFile class is not exposing any property to retrieve last modified date of file.</p>

<p><strong>So can anyone tell me how to retrieve last modified date of file before saving it to hard disk?</strong>                               </p>
