ASP.NET Photo Upload
<p>When uploading a photo to my server using the following code, I'm receiving an erroneous value. This is working fine in the debug mode and when published in localhost.</p>

<pre><code>string filePath = Path.Combine(HttpContext.Server.MapPath("../Uploads"), date);

if (!Directory.Exists(HttpContext.Server.MapPath("../Uploads")))
{      
       Directory.CreateDirectory(HttpContext.Server.MapPath("../Uploads"));
}

file.SaveAs(filePath);
</code></pre>

<p>Can someone please point out what I've done incorrectly?</p>
