[英]Is it possible to upload folders?
So, using 因此,使用
<input type="file" multiple>
is it possible to upload these 4 elements(the 2 files and the folders(with their own content))? 是否可以上传这4个元素(2个文件和文件夹(具有自己的内容))?
if i do this the only elements that are going to be "selected" are the .txt files 如果我这样做,那么将被“选中”的唯一元素是.txt文件
Try that: 试试看:
Yes it possible to upload folder kindly check by below code 是的,可以通过以下代码上传文件夹
<input type="file" webkitdirectory mozdirectory />
Multiple files upload but it must be in same folder: 上载多个文件,但必须位于同一文件夹中:
<input type="file" name="file[]" multiple>
Also go through that one 也经历那一个
Hope it helps!! 希望能帮助到你!! thanks
谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.