Public Document
From LongJump Support Wiki
Revision as of 01:27, 17 February 2012 by imported>Aeric
A public document is one that can be viewed by anyone who has the link. When an existing document is edited and declared Public, a generated link appears that you can use in a JSP/Html Page or put into an email. (A Static Resource, in contrast, is available only to those who are logged in.)
To make an uploaded file Public:
- Workspace > All Items > Documents
- Click [Edit]
- Click the checkbox to make it a Publicly Available Document
- Click [Save]
- The image properties section for a public document contains the field, URL for Public Document, that contains a URL you can use to reference the document. That URL can then be put into an email, used as a bookmark, or put into a JSP/Html Page.
- The generated link looks like this (with newlines added for readability):
https://{domain}/networking/RepositoryPublicDocDownload ?id={document_id} &cid={company_id} &encode={media_type}
- where:
- document_id - The unique identifier for the document.
- company_id - The unique identifier for your instance of the platform
- media_type - Identifies the file's Media Type. For example, image/png or text/plain.