多文件上传C# [英] Multiple File Upload C#

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

问题描述

我有一个网页,我需要一个多文件上传。在Windows窗体中,它非常简单,只需将文件上载控件设置为允许多个文件即可。但是在网络形式中,我不确定如何做到这一点。没有这样的属性,经过一番谷歌搜索后,看起来并不容易。我必须保持在.NET的限制范围内(没有flash,javascript等)。感谢任何可以提供帮助的人。

I have a web page, and I need a multi-file upload. In windows forms, it''s super easy, just set the file upload control to allow multiple files. But in a web form, I''m unsure how to do this. There''s no property like that, and after a bit of googling, it looks like it won''t be easy. I have to stay within the constraints of .NET (no flash, javascript, etc.). Thanks to anyone who can help.

推荐答案

我必须保持在.NET的限制范围内(没有flash,javascript等)。

如果即使Javascript超出了您的限制,那么您所寻求的也是不可能的。



对于strick .NET,您可以定义多个fileupload控件来上传,而不是一次从一个控件上传多个文件。
I have to stay within the constraints of .NET (no flash, javascript, etc.).
If even Javascript is outside your limits, then what you seek is not possible directly.

For strick .NET, you can define multiple fileupload controls to upload instead of uploading multiple files from one control in one go.


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

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