Public Document

From LongJump Support Wiki
Revision as of 01:27, 17 February 2012 by imported>Aeric
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

  1. Workspace > All Items > Documents
  2. Click [Edit]
  3. Click the checkbox to make it a Publicly Available Document
  4. 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.