<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Upload Content Library Item via REST does not work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Upload-Content-Library-Item-via-REST-does-not-work/m-p/1025556#M346595</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to upload a content lib item by copying it in the following path:&lt;/P&gt;&lt;P&gt;\\server\c$\ProgramData\Qlik\Sense\Repository\Content\Default\Sam.png&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file is correctly copied in the repository folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I access the file in the QMC URL, it's not there :&lt;/P&gt;&lt;P&gt;&lt;A href="https://qliksense.domain.local/content/Default/blabla/test.txt" title="https://qliksense.domain.local/content/Default/blabla/test.txt"&gt;https://qliksense.domain.local/content/Default/Sam.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you to please let me know why it is not working, and what does the %RepositoryRoot% stand for in the Content Libraries associated items, like for example: %RepositoryRoot%\Content\Default\Sam.png.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it same as&amp;nbsp; "\\server\c$\ProgramData\Qlik\Sense\Repository\"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In fact what I do not understand is I am trying to upload a content library file through the REST request : /qrs/contentlibrary/{libname}/uploadfile?externalpath={externalpath}&amp;amp;overwrite={overwrite}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not working. I have passed my externalpath in this format --&amp;gt; \\server\c$\ProgramData\Qlik\Sense\Repository\Content\Default\Sam.png, still it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to upload a content lib item by using this REST request? The link below is not enough helpful I am afraid&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/2.2/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Content-Library-Upload-File.htm" title="http://help.qlik.com/en-US/sense-developer/2.2/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Content-Library-Upload-File.htm"&gt;http://help.qlik.com/en-US/sense-developer/2.2/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Content-Library-Upload-File.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 11:16:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-31T11:16:53Z</dc:date>
    <item>
      <title>Upload Content Library Item via REST does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Upload-Content-Library-Item-via-REST-does-not-work/m-p/1025556#M346595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to upload a content lib item by copying it in the following path:&lt;/P&gt;&lt;P&gt;\\server\c$\ProgramData\Qlik\Sense\Repository\Content\Default\Sam.png&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file is correctly copied in the repository folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I access the file in the QMC URL, it's not there :&lt;/P&gt;&lt;P&gt;&lt;A href="https://qliksense.domain.local/content/Default/blabla/test.txt" title="https://qliksense.domain.local/content/Default/blabla/test.txt"&gt;https://qliksense.domain.local/content/Default/Sam.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you to please let me know why it is not working, and what does the %RepositoryRoot% stand for in the Content Libraries associated items, like for example: %RepositoryRoot%\Content\Default\Sam.png.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it same as&amp;nbsp; "\\server\c$\ProgramData\Qlik\Sense\Repository\"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In fact what I do not understand is I am trying to upload a content library file through the REST request : /qrs/contentlibrary/{libname}/uploadfile?externalpath={externalpath}&amp;amp;overwrite={overwrite}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not working. I have passed my externalpath in this format --&amp;gt; \\server\c$\ProgramData\Qlik\Sense\Repository\Content\Default\Sam.png, still it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to upload a content lib item by using this REST request? The link below is not enough helpful I am afraid&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/sense-developer/2.2/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Content-Library-Upload-File.htm" title="http://help.qlik.com/en-US/sense-developer/2.2/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Content-Library-Upload-File.htm"&gt;http://help.qlik.com/en-US/sense-developer/2.2/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Content-Library-Upload-File.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 11:16:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Upload-Content-Library-Item-via-REST-does-not-work/m-p/1025556#M346595</guid>
      <dc:creator />
      <dc:date>2016-03-31T11:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Content Library Item via REST does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Upload-Content-Library-Item-via-REST-does-not-work/m-p/1025557#M346596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was getting a 403 forbidden error when using the REST API to upload an image to the default content library.&amp;nbsp; I finally solved the issue by removing the path from the external file name.&amp;nbsp; I am using a virtual proxy and a session cookie. My request string looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://myserver.mydomain.net/myvirtualproxy/qrs/contentlibrary/Default/uploadfile?Xrfkey=8rGQTrtb8njfzkis&amp;amp;externalpath=appname_sheetid.png&amp;amp;overwrite=true" rel="nofollow" target="_blank"&gt;https://myserver.mydomain.net/myvirtualproxy/qrs/contentlibrary/Default/uploadfile?Xrfkey=8rGQTrtb8njfzkis&amp;amp;externalpath=appname_sheetid.png&amp;amp;overwrite=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Elva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 18:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Upload-Content-Library-Item-via-REST-does-not-work/m-p/1025557#M346596</guid>
      <dc:creator>elva_lester</dc:creator>
      <dc:date>2016-10-10T18:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Content Library Item via REST does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Upload-Content-Library-Item-via-REST-does-not-work/m-p/1783409#M1209753</link>
      <description>&lt;P&gt;Is there any other solution for this? I am experiencing the same problem where when I upload a file, I get the error 403. However, I don't have this problem when I am downloading a file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to suggestion but then got an error "Missing value for externalpath"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some other work around?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 12:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Upload-Content-Library-Item-via-REST-does-not-work/m-p/1783409#M1209753</guid>
      <dc:creator>robynbitner</dc:creator>
      <dc:date>2021-02-17T12:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Upload Content Library Item via REST does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Upload-Content-Library-Item-via-REST-does-not-work/m-p/1928397#M1218880</link>
      <description>&lt;P&gt;I've found the workaround using&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16212"&gt;@elva_lester&lt;/a&gt;&amp;nbsp;solution.&lt;/P&gt;
&lt;P&gt;You can request to upload blank image file into content library as follows (suppose you want to upload my_file_name.png):&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://my_server/my_proxy/qrs/contentlibrary/library_name/uploadfile?externalpath=download125.png&amp;amp;xrfkey=XXXXXXXXXXXXXXXX" target="_self"&gt;https://my_server/my_proxy/qrs/contentlibrary/library_name/uploadfile?externalpath=my_file_name.png&amp;amp;xrfkey=XXXXXXXXXXXXXXXX&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To upload content your user has to have access to update given content library. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;After request is done can check that both empty file and link to it were created in your library folder and QMC.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then just simply paste your image of choice to the StaticContent/&lt;A href="https://my_server/my_proxy/qrs/contentlibrary/library_name/uploadfile?externalpath=download125.png&amp;amp;xrfkey=XXXXXXXXXXXXXXXX" target="_blank"&gt;library_name&lt;/A&gt;&amp;nbsp;folder and overwrite the&amp;nbsp;my_file_name.png&amp;nbsp;file. Then the link works perfectly with your image.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 08:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Upload-Content-Library-Item-via-REST-does-not-work/m-p/1928397#M1218880</guid>
      <dc:creator>bstaniow</dc:creator>
      <dc:date>2022-05-10T08:50:14Z</dc:date>
    </item>
  </channel>
</rss>

