File Upload and knowing the directory structure

后端 未结 3 1862
长情又很酷
长情又很酷 2021-01-06 03:30

We are using jquery fileupload to drag and drop files (and folders) from a local computer to a browser. This works great but we can\'t capture the directory structure of the

3条回答
  •  心在旅途
    2021-01-06 04:05

    See jquery file upload's support for this related to @Dead133s mention of webkitdirectory https://github.com/blueimp/jQuery-File-Upload/wiki/Browser-support

    "It is possible to select a complete folder structure, though this is currently only supported by Google Chrome.To enable this feature, the following vendor-specific directory attributes have to be added to the file input field:"

    
    

    Another low-tech solution would be to have users zip up the files and upload those, preserving any folder.

提交回复
热议问题