在C#Web应用程序中批量上传文件 [英] bulk file uploading in c# web application

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

问题描述

我正在用c#4开发Web应用程序,我的应用程序用户希望一次上传100多个文件[所有文件都来自同一文件夹,请确认.我给了一个普通的文件上传器,他在其中一次上传一个文件,但是对他来说,一次上传超过100次是不可行的,

所以请给我建议任何逻辑或想法如何实现.

我只是想如果我允许用​​户从他的文件夹中选择一个文件,一旦获得路径,我将使用目录或其他方式列出该文件夹中的所有文件,并将一个文件传递给服务器,但是我不知道如何获取所选文件的路径,因为该文件位于客户端计算机上

请帮我解决它非常紧急的问题,我真的很困

在此先感谢

i m developing a web application in c#4, my application user want to upload a more than 100 files at a time[all files will be from same folder is confirm]. i had given a normal file uploader in which he uploads a single file at a time but its not feasible for him to do it for more than 100 times,

so please suggest me any logic or any idea how to do it.

i just thought if i allow user to select a single file from his folder, and once i get the path i will list out the all files from that folder by using directory or some thing else and will pass a single file to server, but i dont know how to get the path of selected file because that file is on client machine

please help me out its very urgent and i m really stuck

thanks in advance

推荐答案



您应该能够轻松地将单个上传者扩展到多个上传者.
有很多机会可以执行此操作,即创建事件,以便在首次下载/最后一次下载完成后,上传器应用程序会自动获取下一个文件.
也许您可以与我们分享您的代码?

致以最诚挚的问候
Hi,

you should be able to easily extend your single uploader to multi uploader.
There are a lot of opportunities to do this i.e. creating events that uploader application takes next file automatically if first/last download is finished.
Maybe you share your code with us?

With Best Regards


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

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