Find the location of a stored attachmentUse the FilesUtilService.getFileById command to locate a file attachment stored in a directory on a file system.
Before you beginTo use administrative commands, use the wsadmin client. See Starting the wsadmin client for details.
Many commands ask for IDs as input parameters, such as library IDs, user IDs, policy IDs, and file IDs. You can use commands that take parameters you do know to return data including the ID you are looking for. For example, run WikisMemberService.getByEmail(string email) providing a user's email address and among the data returned is the user's ID. You can also find IDs using feeds. See the Lotus Connections API documentation for information on getting ID information using feeds.
About this taskIn network deployments, files attached to wiki pages are stored on a shared file system, as described in the topic Install the first node of a cluster.
This command can be useful when restoring backup versions of data. See the topic Backing up Files data for more information.
- Start the wsadmin client.
- Start the Wikis Jython script interpreter using the following command:
- Run the following command to locate a file attachment stored in the file directory:
where fileID is the ID of a file stored in the database. The ID must be a string in the following standard Universally Unique Identifier (UUID) format: 00000000-0000-0000-0000-000000000000.
The command returns the file path as a string, even if the file is not in use.
Parent topicAdminister Wikis