问题
input field with type file used for browsing file .How to make it for browsing folder.
回答1:
You can't. The input type=file
control is limited to picking one file at a time.
If you want to pick multiple files, there are various ways, Flash based uploaders, Java and ActiveX based components. The Flash based uploaders are the best bet, and there are Open Source ones around. Check out SWFUploader.
回答2:
You would have to use server side or some ActiveX to do this as javascript does not support this
来源:https://stackoverflow.com/questions/2176184/input-field-for-browsing-folder