如何上传通过ASP.NET MVC的文件,并显示进度条? [英] How can I upload a file via ASP.NET MVC and show a progress bar?

查看:176
本文介绍了如何上传通过ASP.NET MVC的文件,并显示进度条?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在找允许用户浏览和文件上传到我的ASP.NET MVC应用程序的服务器。

I'm looking to allow a user to browse and upload a file to the server in my ASP.NET MVC application.

如果有可能,我有兴趣加入一个进度条来显示多少文件已被上传。

If it is possible, I'm interested in adding a progress bar to show how much of the file has been uploaded.

有没有人有这样的事情任何的例子吗?我应该使用jQuery来做到这一点?

Does anyone have any examples of something like this? Should I use jQuery to do this?

推荐答案

ASP.NET MVC的好处是,你几乎可以任意选择开箱上传组件在那里,并用它没有任何问题。

The beauty of ASP.NET MVC is that you can choose almost any out of the box upload component out there and use it without any problems.

这jQuery插件是一个伟大的选择,一个是我在我的项目中使用: Uploadify

This plugin for jQuery is a great choice and one that I use in my projects: Uploadify

这篇关于如何上传通过ASP.NET MVC的文件,并显示进度条?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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