如何在WCF中上传多个文件? [英] How to Upload Multiple Files in WCF?

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

问题描述





我试图在wpf上传多个图像文件,但目前我一次只能上传一个文件。



所以,我会请你分享一些与我有关的链接,这可能有助于解决这个问题。



谢谢

Hi

I am trying to upload multiple image files in wpf but currently I'm able to upload only single file at a time.

So,I would request you to please share some of the links with me which may help to resolve this issue.

Thanks

推荐答案

正如我所看到的,多个文件的问题不是多个文件的问题(你对我的问题的回答一个接一个是不够的),但是对话框。解决方案是:将 Multiselect 指定为true,显然,你应该使用 FileName ,但是文件名。它将解决问题。



此外,始终在您的问题中提供完整的类型名称。在这种情况下,没有任何本质区别,但仍然类型 System.Windows.Forms.OpenFileDialog Microsoft.Win32.OpenFileDialog 是不同的,或者它可能是你没有告诉我们的其他类型。



-SA
As I can see, your problem with multiple files is not a problem of multiple files (your response to my question about one by one is inadequate), but the dialog box. The solution is: with Multiselect assigned to true, you should use, quite obviously, not FileName, but FileNames. It will solve the problem.

Besides, always provide full type name in your questions. In this case, there is no any essential difference, but still the types System.Windows.Forms.OpenFileDialog and Microsoft.Win32.OpenFileDialog are different, or it could be some other type you did not tell us.

—SA


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

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