Upload to file

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
madness77
User
Posts: 4

Upload to file

Post 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
{
}
}


RonaldTast
User
Posts: 1
Location: Российская Федерация
Contact:

Post 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


motfs
User
Posts: 258

Post 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?


Post Reply