简体   繁体   中英

jQuery fileupload to upload both directories and files

I wanted to know if there is any way to use jQuery fileupload to upload both directories and files. I saw in the documentation that it is possible to upload directories with this input type

<input type="file" name="files[]" multiple directory webkitdirectory mozdirectory>

But it says

It is also possible to allow selecting a folder ( instead of files ) via the file input element by adding browser-vendor specific "directory" attributes

The "instead of files" part is pretty annoying for my usage. Any ideas?

The uploader does not support folders and files, only folder, or only files. If you want to allow your users to upload a entire directory, using ZIP files could be nice.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM