我可以使用asp FileUpload来选择一个文件夹吗? [英] Can I use asp FileUpload to select a folder?
本文介绍了我可以使用asp FileUpload来选择一个文件夹吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要类似于asp.net中的FileUpload控件,它允许用户浏览文件夹并输入要上传的新文件的文件名。
I need something like the FileUpload control in asp.net that will allow the user to browse for a folder and enter a file name of a new file to upload.
从我看到的FileUpload需要选择一个文件。看来,html输入类型=文件具有相同的要求。
From what I've seen FileUpload requires a file to be selected. It seems that html input type="file" has the same requirement.
谢谢!
推荐答案
选择整个文件夹在FileUploadControl中是不可能的,因为它是针对单个文件的。虽然您可以有一个多文件选择。 多文件上传用户控件
Selecting an entire folder is not possible in FileUploadControl as it is meant for a single file. Although you can have a Multi File Selection. Multiple File Upload User Control
这篇关于我可以使用asp FileUpload来选择一个文件夹吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文