我要做的功能是文件夹上传,如何在点击上传的时候,选择文件夹?
可以考虑使用 HTML5 的 Webkitdirectory
<input type="file" id="file_input" multiple="" webkitdirectory="">
可以参考
http://sapphion.com/2011/11/21/html5-folder-upload-with-webkitdirectory/
我要做的功能是文件夹上传,如何在点击上传的时候,选择文件夹?
可以考虑使用 HTML5 的 Webkitdirectory
<input type="file" id="file_input" multiple="" webkitdirectory="">
可以参考
http://sapphion.com/2011/11/21/html5-folder-upload-with-webkitdirectory/