Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
We are trying to download multiple pdf files from filerepo. How can we perform this action? Is there any service or resources which we can use?
When you use GetFileListingWithLinks, it exposes a URL that allows for downloading the file.
We have a function which loops through the files in the filerepo.
See the code below with the line "How can I download a file here?"
var params = {
nameMask: "",
path:""
};
// result: INFOTABLE dataShape: FileSystemFileWithLinks
var result = Things["myfilerepo"].GetFileListingWithLinks(params);
for each(var myfile in result.rows)
{
How can I download a file here?
logger.warn(myfile.downloadLink);
}
You will need to return the download links to a mashup so the user on the client side can click them to initiate the download.
I am using the downloadlink in the GetFileListingWithLinks(param) and connecting that to Link Widget SourceURL and I was able to download only 1 file but I want to download 1 file at a time if it has multiple files. Is that even possible?
If you display it in a Grid you will see the full list of links you are returning.