Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi, if you wanted to use securefile to let trusted users upload a file from the front-end (Couch lets do this with securefile), then you might be stuck with ways to use uploaded file somewhere else, like in CSV importer.

Upd: viewtopic.php?f=2&t=10417#p28801
What's great about this solution is that it WORKS.

Today I was attaching PDF Viewing facilitator script from here https://pdfobject.com/#examples to Couch template and it required a link to a file. What's really important is that it works with cloak_url link that I prepared with this snippet and didn't work with cloak_url link, that we normally use with <cms:show_securefile ><cms:cloak_url link=file_id />. Strange, but it saved me.

Update: viewtopic.php?f=2&t=10417#p28801
With a new tag 'cms:securefile_link' shipping with core code, this interim solution became obsolete.
Parameters of the new tag are: id, thumbnail, physical_path.
Cool :)
Details and sample code of the <cms:securefile_link> tag referred to by @trendoman above can be found here -
viewtopic.php?f=4&t=10910#p27939
4 posts Page 1 of 1