diff --git a/hn_SimpeFileUploader.ashx b/hn_SimpeFileUploader.ashx index c16dfd3..e8ac9cf 100644 --- a/hn_SimpeFileUploader.ashx +++ b/hn_SimpeFileUploader.ashx @@ -30,7 +30,7 @@ public void ProcessRequest(HttpContext context) { fileExtension = Path.GetExtension(fileName); str_image = "MyPHOTO_" + numFiles.ToString() + fileExtension; - string pathToSave = HttpContext.Current.Server.MapPath("~/MediaUploader/") + str_image; + string pathToSave = dirFullPath + str_image; file.SaveAs(pathToSave); } } @@ -45,4 +45,4 @@ public void ProcessRequest(HttpContext context) -} \ No newline at end of file +}