![]() When this form will be submitted, it will go to UploadMultipleFiles action method of the controller. In the above code snippet, we have more than one html file upload element (and also have kept multiple attribute that supports only in HTML 5 - this ensures that a single HTML file element enable user to select multiple file by holding ctrl key) and remaining codes are same as last point of uploading a single file on the server. ![]() ![]() VIEW CODE Upload multiple ( Html.BeginForm("UploadMultipleFiles", "Files", FormMethod.Post, To upload multiple file, we will follow the same approach as we followed for single file upload however the way to access the form file element in action method would be little different. Before proceeding with this example, it is recommended to learn how to upload a single file on the server in the previous examples.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |