Can I download a file directory with XHR?

I see that I can select the input folder, but it seems that I have no way to recurs through the files in this folder to download them through XHR.

+4
source share
1 answer

Yes *

<input type=file name=files id=files multiple> 

* only works in the latest browsers. You should get an array of data that you usually get from a single file upload element, and from there you go racing using HTML5

Also, you are stuck with something like: http://swfupload.org/

And lately, I mean that it works on Firefox 8, Safari 5.1 and Google Chrome 15 installed on my Mac. But these are the latest versions.

+1
source

Source: https://habr.com/ru/post/1385988/


All Articles