File resource element

 

+

Search Tips   |   Advanced Search

 

We can store a file, such as a PDF file, in a file resource element. A file resource element is stored in an authoring template, site, site area, content item or file resource component.

By storing a file in a file resource element:

  • we can reference the file anywhere in the site regardless of the original file location or URL.

  • the file is automatically transferred to other servers during syndication.

Use file resource elements to enable users to download files. For example, We can store a PDF file as a file resource element. We can then create a link to this in a presentation template or HTML element to enable users to download the PDF file. The structure of the link is as follows:

    <a href="<component name="FileResource" />">Link Text</a>

 

Importing large files and images.

By default, 10 MB is the largest single file that we can import. If the need to import files larger than 10 MB, an administrator will need to configure the server's inbound buffer size.

 

Storing a file in Document Manager versus storing a file in Web Content Management.

A file can be stored both as a document in Document Manager or as an element, such as a file resource element, in Web Content Management. You only store a file in Web Content Management if it is to be used only by Web Content Management. If other WebSphere Portal modules require access to a file, or if we need to use a feature provided by Document Manager, then store the file as a document in Document Manager.

 

Uploading resources with non-ASCII characters in resource filename

All non-ASCII characters are removed from the filenames of resources imported into Web Content Management items. If a filename is found to have no ASCII characters, then the resource will be given the name of "resource". For example, resource.jpg.

 

Parent Topic

Store files and images