Skip to main content Skip to complementary content

Content library: Upload file

Information noteLOCKED.

This API is extremely reliable and will not be broken unless absolutely necessary.

Method

POST

Path

/qrs/contentlibrary/{libname}/uploadfile?externalpath={externalpath}&overwrite={overwrite}

Description

Upload a file to a content library, identified by {libname}, and store the file in accordance to the path specified in {externalpath} (for example, image.png). {overwrite} is optional and set to false by default.

A content library holds static content (for example, image and video files) that can be used in Qlik Sense. To GET an uploaded file from a content library, use the following format:

https://{host}/content/{libname}/{externalpath}

where:

  • {libname}: The name of the content library
  • {externalpath}: The path to the file (for example, image.png)

Header

Content-Type setting for the body: Most Internet media types defined by the IANA are supported.

Body

File

Return value

string

The string contains the path to the uploaded file.

Optional parameters

  • {overwrite}: If this parameter is set to false, which is the default setting, an error (409) is returned if the file that is provided in the body has the same name as an already existing file. If this parameter is set to true, the file provided in the body will overwrite any file with the same name.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!