<?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 Re: How to upload a file from a CUSTOM SHARE PAGE ? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-a-file-from-a-custom-share-page/m-p/66519#M22374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can get ticket like this way.&lt;/P&gt;&lt;P&gt;Creare repository side webscript and and call that webscript from share.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;## ticket.get.desc.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;webscript&amp;gt;&lt;BR /&gt;&amp;lt;shortname&amp;gt;Get current ticket&amp;lt;/shortname&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;Get current ticket&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;url&amp;gt;/auth/get-ticket&amp;lt;/url&amp;gt;&lt;BR /&gt;&amp;lt;format default="json"&amp;gt;extension&amp;lt;/format&amp;gt;&lt;BR /&gt;&amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;BR /&gt;&amp;lt;/webscript&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;## ticket.get.json.ftl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"ticket": "${sessionticket.ticket}"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2019 15:38:44 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2019-02-25T15:38:44Z</dc:date>
    <item>
      <title>How to upload a file from a CUSTOM SHARE PAGE ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-a-file-from-a-custom-share-page/m-p/66516#M22371</link>
      <description>Hey guys,What I have done is that I have integrated a scanner in alfresco. What it actually does is, after scanning the document it uploads it to a folder in the document library. For this I have created a custom share page called scanner and in that I have written a javascript which will get the sc</description>
      <pubDate>Mon, 25 Feb 2019 05:43:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-a-file-from-a-custom-share-page/m-p/66516#M22371</guid>
      <dc:creator>paulclinton</dc:creator>
      <dc:date>2019-02-25T05:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a file from a CUSTOM SHARE PAGE ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-a-file-from-a-custom-share-page/m-p/66517#M22372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you are uploading file from share then username and password is not required.&lt;/P&gt;&lt;P&gt;API that you have used that is rest api so it takes username and password.&lt;/P&gt;&lt;P&gt;Other thing you can do is&amp;nbsp; pass ticket with that api.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 09:04:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-a-file-from-a-custom-share-page/m-p/66517#M22372</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-02-25T09:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a file from a CUSTOM SHARE PAGE ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-a-file-from-a-custom-share-page/m-p/66518#M22373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply Sanjay.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I did find a api which would get me the ticket. But to generate the ticket, User Name and Password parameters are required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the api which I found to generate ticket.&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;GET /alfresco/s/api/login?u={username}&amp;amp;pw={password?}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any-other way I could get the session ticket ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 10:44:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-a-file-from-a-custom-share-page/m-p/66518#M22373</guid>
      <dc:creator>paulclinton</dc:creator>
      <dc:date>2019-02-25T10:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a file from a CUSTOM SHARE PAGE ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-a-file-from-a-custom-share-page/m-p/66519#M22374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can get ticket like this way.&lt;/P&gt;&lt;P&gt;Creare repository side webscript and and call that webscript from share.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;## ticket.get.desc.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;webscript&amp;gt;&lt;BR /&gt;&amp;lt;shortname&amp;gt;Get current ticket&amp;lt;/shortname&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;Get current ticket&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;url&amp;gt;/auth/get-ticket&amp;lt;/url&amp;gt;&lt;BR /&gt;&amp;lt;format default="json"&amp;gt;extension&amp;lt;/format&amp;gt;&lt;BR /&gt;&amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;BR /&gt;&amp;lt;/webscript&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;## ticket.get.json.ftl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"ticket": "${sessionticket.ticket}"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2019 15:38:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-a-file-from-a-custom-share-page/m-p/66519#M22374</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-02-25T15:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload a file from a CUSTOM SHARE PAGE ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-a-file-from-a-custom-share-page/m-p/66520#M22375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for coming back late. Thank you for the help. I did write a webscript to get a ticket and used that ticket along with the REST api to upload the file. It worked fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 03:49:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-a-file-from-a-custom-share-page/m-p/66520#M22375</guid>
      <dc:creator>paulclinton</dc:creator>
      <dc:date>2019-03-01T03:49:13Z</dc:date>
    </item>
  </channel>
</rss>

