Answer the question
In order to leave comments, you need to log in
Wrong encoding when passing from controller to view using AJAX - how to fix?
The controller has such a thing:
(specially simplified it)
//AJAX запрос на загрузку миниатюры
[HttpPost]
public ActionResult AddThumbnail()
{
HttpPostedFileBase image = Request.Files["fileInput"];
switch (image.FileName)
{
case "noimg.jpg":
return new HttpStatusCodeResult(406, "Формат загруженной картинки не подходит");
default:
return Json("Успешно загрузили");
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question