Close popover

Table of Contents

Get file API

The get file API is a read-only data page, D_pxGetFile. This API loads content or a stream to a file when the data page is loaded.

To use this API, define the following parameters:

  • repositoryName – the name of the repository from which to get the file.
  • filePath – the path, including the name of the file, to be retrieved, relative to the root path of the repository.
  • responseType – the type of content that is in the file to be retrieved, either "STREAM" or "STRING".

It is a best practice to use the Stream responseType. Use the String option only for backward compatibility purposes.

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.