异步文件上传与MVC3 / .NET? [英] Asynchronous file uploader with MVC3/.NET?

查看:147
本文介绍了异步文件上传与MVC3 / .NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家我是一个学生,新的.NET和专门MVC3发展。

everyone I am a student and new to .NET and specially MVC3 development.

目前在我的项目的一环没有包含一些文本字段和两个文件输入的形式。

Currently in one of my projects part there is a form that includes few text fields and two file inputs.

保持在认为上载的文件可能是大尺寸我想使用异步文件上传,可显示文件的进展情况上传,使用户不喜欢挂起来,stucked同时上传文件在后面,我想保持用户参与和了解文件上传进度。我搜索了一些可能的选项,如uploadify但并没有找到太多的成功使用它们。

Keeping in view that the file uploaded could be of large sizes I want to use an Asynchronous file uploader which can show the progress of the file being uploaded so that user don’t feel like hanged up and stucked while the files being uploaded at the back, I want to keep user engaged and informed about the file upload progress. I search for few possible options such as uploadify but didn’t find much success in using them.

  • 我想知道是否有任何有用的.NET / MVC的插件,可用于异步上传这些文件?

  • I want to know are there any useful .net/MVC plugins that can be used to asynchronously upload those files?

这将是最好有一些选项,比如在它的文件扩展名/大小检查。

It would be best to have some options such as file extension/size check in it.

感谢您!

推荐答案

在技术上,multiupload有一些进步的标志不是服务器端功能,因此你不能得到MVC插件来做到这一点。您必须实现一些客户端解决方案,通常是基于Flash,Silverlight的,HTML5左右 - 有很多。在服务器端,您必须然后就收到文件像往常一样(或块合并,如果它是发送拆分模式 - 请参见本教程)。

technically, multiupload with some progress indicator is not server side functionality, so you cant get "MVC plugin" to do that. You must implement some client-side solution, usually based on Flash, Silverlight, HTML5 or so - there are many of them. On server side you must then just receive that file as usual (or merge it from "chunks" if it is send in "split" mode - see tutorials on this).

所以更像是MVC插件,你需要搜索的jQuery插件或multiupload一般。

So more like "MVC plugin" you need to search for "Jquery plugin" or "multiupload" in general.

例如,请看这里: HTTP:/ /superdit.com/2010/06/29/10-jquery-ajax-file-uploader-plugins/

这篇关于异步文件上传与MVC3 / .NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆