image upload problemPCPooja Chowdhury9yAsked Mar 25, 2017, 1:19 AM717.NETHow to upload images from domain to sub domain in asp.net
Hassan Uddin Mughal9y agoPosted Mar 25, 2017, 4:07 AMYou can store physical path of imagefolder of subdimain in web.config and use it when saving image. SaveAs() method of FileUpload control required physical path and you have provided virtual path. Try this.ImagePath ="C:\inetpub\wwwroot\MyApp\storage\uploads\" + FileName; //Physical pathfuUploadAvtar.SaveAs(ImagePath);
Hassan Uddin MughalPosted Mar 25, 2017, 4:07 AM