Base solution for your next web application
Open Closed

File Upload p-fileUpload #6308


User avatar
0
maharatha created

Can I get some sample code to display he message returned from the Server when upload is complete ? I am trying to capture :

return Json(new AjaxResponse("some message)); from the file controller and show them on the client side.

Which event of p-Fileupload should I use and how to use.

Thanks in advance


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Code like this? https://github.com/aspnetzero/aspnet-zero-core/blob/d44aa6324c1162cb948ccf84f818e6b0f49b94fd/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/wwwroot/view-resources/Areas/AppAreaName/Views/Layout/_ChatBar.js#L782