02-19-2018 01:11 PM
Hello guys,
I send files through the API to the site, it's OK.
But now some kind of files need a public link to download a file. This link should be a public without login, ie download a file in e-mail, download a file in a website.
How can I achieve this?
Alfresco version: Community - 5.2.0 (re21f2be5-b22)
02-19-2018 02:02 PM
Go to the Alfresco API Explorer and take a look at Shared Links.
02-19-2018 02:02 PM
Go to the Alfresco API Explorer and take a look at Shared Links.
10-07-2020 06:46 PM
How would I filter by site and get a list of paths?
10-08-2020 01:37 AM
Hi,
You need to create custom webscript where first find all shared node and then fillter by site and return.
Here is webscript example.
var def = { query: "ASPECT:'qshare:shared'", language: "fts-alfresco" }; var nodes = search.query(def); for each(var node in nodes) { logger.log(node.nodeRef + " ; " + node.properties["qshare:sharedId"] + " ; " + node.webdavUrl); }
10-08-2020 05:48 AM
Hi @eswbitto
I'd generally recommend starting your own thread rather than adding to a much older post.
Cheers,
10-08-2020 11:48 AM
I should have thought of that. I'll create a new post. My apologies.
02-20-2018 06:08 PM
Thanks to Jeff, it was my fault.
It works perfectly. It would be nice if Alfresco had the option to enable sharing when creating the document and the URL for sharing in json return. This would avoid two calls to an Alfresco API.
Thank you again.
Explore our Alfresco products with the links below. Use labels to filter content by product module.