使用达伦·约翰斯通的大文件的上传库的ASP.NET MVC控制器 [英] Using Darren Johnstone's Large File Upload Library with ASP.NET MVC Controllers
问题描述
达伦·斯通写道一个COM prehensive服务器控件库上传大文件在ASP.NET中的进度条。我想用它在ASP.NET MVC,使用控制器的方法来接收文件,和一个Ajax控制器的方法来驱动状态栏。
Darren Johnstone wrote a comprehensive server control and library to upload large files with a progress bar in ASP.NET. I would like to use it with ASP.NET MVC, using a controller method to receive the file, and an Ajax controller method to drive the status bar.
我已经研究了类,但我有困难,让我的心在什么附近的切入点,以及如何将它集成到MVC。
I have studied the classes, but am having difficulty getting my mind around what the punch-in points are, and how it would be integrated into MVC.
有没有人用这个与MVC,withou使用服务器控件包含在图书馆?如果是这样,怎么样?一个简单的code样品将是巨大的。
Has anyone used this with MVC, withou using the server controls included with the library? If so, how? A simple code sample would be great.
注:我愿意用不同的上传库,如果它是更好的,尤其是如果它使用jQuery库的进度条,但它不能要求一个Flash / Silverlight的相关性,它确实需要忠实于编码的MVC风格。
NOTE: I am willing to use a different upload library if it is better, especially if it uses a jQuery library for the progress bar, but it must NOT require a flash/silverlight dependency, and it does need to be faithful to the MVC style of coding.
推荐答案
我有一个的演示MVC解决方案,它使用ASP.NET服务器控件这里。没有这种控制,但这个想法是一样的。
I have a demo MVC solution which uses an ASP.NET server control here. Not this control, but the idea is the same.
这篇关于使用达伦·约翰斯通的大文件的上传库的ASP.NET MVC控制器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!