Page 1 of 1

Upload to file

Posted: Sun Aug 28, 2016 3:30 pm
by madness77

I want to call a custom page to store the upload file inside the upload folders in wwwroot folder and Im using my custom page "SaveToFile.cshtml" to do this thing but now, it is working fine in Asp.Net maker MVC but noe it is does nt working in Asp.Net core I dont know mabe some features does not support a part from my code

*@{
try
{
String strImageName;
HttpFileCollection files = HttpContext.Current.Request.Files;
HttpPostedFile uploadfile = Request.Files["RemoteFile"];
strImageName = uploadfile.FileName;
string strInputFile = ew_UploadPath(true) + strImageName;
uploadfile.SaveAs(Server.MapPath(".") + "..\\uploads\\" + strImageName);
HttpContext.Current.Request.Files("DWTBarcodeUploadSuccess:" + strImageName);
}
catch
{
}
}


Upload to file

Posted: Thu Sep 22, 2016 2:34 am
by RonaldTast

Hi all,

Is the Upload a file option working ok?
It is here, but on the post about the Cinelli conversion to a TT bike, it won't let me?

Cheers
Keith


Re: Upload to file

Posted: Thu Sep 22, 2016 12:36 pm
by motfs

If you encounter issue, post the error message as well. It is difficult to guess what's the issue. Read the help file topic: Tutorial - File Upload to Folder or Tutorial - File Upload to Database for more details

the Cinelli conversion to a TT bike

Provide more details about the issue. What kind of conversion is it?