i have been trying to save image in folder i am using jquery to get image name like example.jpg then i am using image name in my ajax method to send it to my details.aspx file but the issue i am facing is that i can’t save the image in my folder why this error is occuring and how can i solve that however i am getting proper image name and proper path
string imagesFolder = HttpContext.Current.Server.MapPath("~/Images/");
string imageName = Path.GetFileName(Upload_Image);
string imagePath = Path.Combine(imagesFolder, imageName);
File.Copy(imageName, imagesFolder, true);
when i am hovering on image path or using add watch i can literaly see folder and image here is what i am seeing
C:UsersAdminDocumentsVisual Studio 2012ProjectsHeitageClubImagesscreenshot.png
and here is the error everytime i see
Could not find file ‘screenshot.png’.