Not able to upload file using Ajax.BeginForm() asynchronously

后端 未结 4 1696
故里飘歌
故里飘歌 2020-12-01 21:56

I\'m trying to upload a file using Ajax.BeginForm(), but it\'s not working out.

My view contains:

@using (Ajax.BeginForm(\"UploadFile\", null, new Aj         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 22:01

    You cannot upload files using AJAX. This is not supported. If you want to do that you could either use some file upload plugin such as Uploadify or Blueimp File Upload or use the HTML 5 File API if the client browser supports it.

提交回复
热议问题