function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

What is the best way to make file available for download in a Community

Hi, simple question I hope, although I'm struggling with it!

I have a file I want to make available for download within a community.  It's a csv template that is only useful for this particular community.  What is the best way to make this file available for users to download?

I've tried adding the file as a Document under Assets in Studio but am unable to figure out what link to use to access it.  "/filename" doesn't work.

I can upload it in Salesforce as a File and create a public link, but I'd rather not have to use a full, hardcoded url if I can avoid it.

How have you got around this?