多文件上传与HTML 5 [英] Multi-File Upload with HTML 5
问题描述
我目前使用Flash的Web应用程序。该应用程序允许用户选择从他们的计算机和preSS的上载的多个文件。然后,我们将这些文件上传到我们的服务器。我需要更新我们的应用程序使用HTML 5。
I have a web application that currently uses Flash. That application allows the user to select multiple files from their computer and press "upload". We then upload those files to our server. I need to update our application to use HTML 5.
我的问题是,什么是上传与HTML 5的多个文件建议的方法?我对我的后端使用ASP.NET MVC 3。
My question is, what is the recommended approach for uploading multiple files with HTML 5? I am using ASP.NET MVC 3 on my backend.
感谢您!
推荐答案
您想要使用这个在,比方说,可以让表单的上传文件的用户:
You want to use this in, let's say, the form that let's the user to upload files:
<input name="uploads[]" type="file" multiple="true">
然后,在后端你可以通过包含不同的文件上传,数组。
Then, in the backend you can go through the uploads as an array that contain the different files.
这篇关于多文件上传与HTML 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!