ASP.NET MVC的多个文件上传 [英] Multiple fileuploads with ASP.NET MVC

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

问题描述



我已经实现了这个插件由史蒂夫·桑德斯从2008年。在我的解决方案,我有3个按钮3上传,这工作得很好。但不是一个完美的合适,问题是,如果thera是一个更好的解决方案吗?



我需要的是:


  1. 能够上传多个文件
  2. 触发控制动作时应该可以使用文件
  3. 最终用户应该能够取消上传的文件(据我所知,这对Steves插件是不可能的)
  4. 使用ASP.NET MVC很容易
  5. >
  6. 如果一个帖子完成了控制动作,并且验证错误被抛出,上传可能不会消失。



你需要的一切。然而,他的插件似乎并没有公开swfUpload的所有功能,例如取消上传。



我在我的站点上使用swfUpload来支持多个文件,取消上传,验证,不取消其他上传等。



这是一个 swfUpload的演示,您可以取消上传

Hi,

I have implemented this plugin by Steve Sanders from 2008. In my solution I have 3 buttons for 3 uploads and this works just fine. But ist not a perfect fit and the question is if thera is a better solution for me?

What I need is :

  1. Be able to upload multiple files
  2. When the Control Action is triggered It should be possible to work with the files
  3. The enduser should be able to cancel a uploaded file(this is not possible with Steves plugin as far as I know)
  4. Easy to use with ASP.NET MVC
  5. If a post is done to the Control Action and a validation error is thrown back the uploads may not disappear.

Pleas Advice

解决方案

Under the hood the Steve Sanders' plugin uses swfUpload which can support everything you need. His plugin however does not seem to expose all of the features of swfUpload such as canceling uploads.

I use swfUpload to it's full extent on my sites supporting multiple files, canceling uploads, validation without canceling other uploads, etc.

Here's a demo of swfUpload in action where you can cancel uploads

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

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