I can download things from my controlled server in one way - by passing the document ID into a link like so :
https://website/deployLink/442/document/download/$NUMBER
If I navigate to this in my browser, it downloads the file with ID $NUMBER
.
The problem is, I have 9,000 files on my server.
How can I neatly download them all into one folder ? I guess a JavaScript solution would be best here ?
for(i=0; i<=9000; i++) {
download("C:/Users/FolderOfFiles", "https://website/deployLink/442/document/download/" + i)
}
is the functionality I want. Whats the best and cleanest way to implement this?
I should add - this is the ONLY way I can download from the server, there is one API call exposed to me and I do not have FTP access. This is the only way :).