How to automatically upload file after file has been chosen

后端 未结 4 1227
走了就别回头了
走了就别回头了 2021-01-18 20:25

I have the following code for uploading a file in my site:

@using (Html.BeginForm(\"UploadProfileImage\", \"Member\", FormMethod.Post, new { @encType = \"mul         


        
4条回答
  •  抹茶落季
    2021-01-18 21:21

    I have not use Microsoft.web library but if you can call the java script function Automatically after the file uploded then you can also acheive that.

    If you can call the javascript founction in this line :

    @Microsoft.Web.Helpers.FileUpload.GetHtml(initialNumberOfFiles: 1, includeFormTag: false, uploadText: "Upload File",allowMoreFilesToBeAdded:false)
    

提交回复
热议问题