App content: Upload file

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

Method

POST

Path

/qrs/appcontent/{appid}/uploadfile?externalpath={externalpath}&overwrite={overwrite}

Description

Upload a file to an app content library, identified by {appid}, and store the file in accordance with the path specified in {externalpath}; for example, specifying image.png would store the file in the default folder C:|ProgramData\Qlik\Sense\Repository\AppContent\{guid}\. You can also specify subfolders such as myfiles\image.png, which would store the file under C:|ProgramData\Qlik\Sense\Repository\AppContent\{guid}\myfiles\. {overwrite} is optional and set to false by default.

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 information help you?

Can you tell us why it did not help you and how we can improve it?