Community Tip - You can change your system assigned username to something more personal in your community settings. 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.