tag:support.appharbor.com,2010-11-23:/discussions/problems/94780-images-are-not-uploading-on-appaharbor-apnet-mvcAppHarbor: Discussion 2018-02-23T09:19:54Ztag:support.appharbor.com,2010-11-23:Comment/447645972018-02-20T19:00:45Z2018-02-20T19:04:07ZImages are Not Uploading on Appaharbor Ap.net mvc<div><p>Images are not Uploading.<br>
I'm using this code;<br>
ads.image = collection["ImageFile"]; string fileName = Path.GetFileNameWithoutExtension(ImageFile.FileName); string extention = Path.GetExtension(ImageFile.FileName); fileName = fileName + DateTime.Now.ToString("yymmssff") + extention; ads.image = "~/Images/" + fileName; fileName = Path.Combine(Server.MapPath("~/Images/"), fileName); ImageFile.SaveAs(fileName); Image Path Save in Database but image are not save in loaction.<br>
When Upload image on Appharbor this error are showing.<br>
Could not find a part of the path 'D:\Users\apphba31278be216879\app_PublishedWebsites\WebMatrixWebsite\Images\60592451_m_018260873.jpg'.</p></div>ateeq.ranglerztag:support.appharbor.com,2010-11-23:Comment/447645972018-02-23T09:19:52Z2018-02-23T09:19:52ZImages are Not Uploading on Appaharbor Ap.net mvc<div><p>Hi,</p>
<p>It looks like the deployed application doesn't have a folder named "Images" in the root directory (you can download the build to inspect what AppHarbor deploys, and since this build doesn't include a solution file the website root directory is nested under <code>_PublishedWebsites\WebMatrixWebsite\</code>).</p>
<p>Try and commit a file to that repository, or make sure it's created prior to writing files to it. You'll also need to enable file system write access on your application's "Settings" page. That'll allow write access to the application folder, but please note that it should be stored elsewhere as the filesystem is wiped on each deploy.</p>
<p>Best,<br>
Rune</p></div>rune