Public link to download file

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Active Member II

Public link to download file

Jump to solution

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)

1 Solution

Accepted Solutions
Highlighted
Professional

Re: Public link to download file

Jump to solution
6 Replies
Highlighted
Professional

Re: Public link to download file

Jump to solution
Highlighted
Active Member II

Re: Public link to download file

Jump to solution

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.

Highlighted
Active Member

Re: Public link to download file

Jump to solution

How would I filter by site and get a list of paths?

Highlighted
Senior Member II

Re: Public link to download file

Jump to solution

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);
}

 

Thanks & Regards,
Sanjay
Highlighted
Community Manager
Community Manager

Re: Public link to download file

Jump to solution

Hi @eswbitto 

I'd generally recommend starting your own thread rather than adding to a much older post.

Cheers,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
Highlighted
Active Member

Re: Public link to download file

Jump to solution

I should have thought of that. I'll create a new post. My apologies.