<?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: Enable(give permission) guest to upload content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/enable-give-permission-guest-to-upload-content/m-p/254196#M207326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Giving Guest access to upload files in the Repo is not a good practice, so you need to handle your internal validation carefully. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you can use the RESTful Login service (/alfresco/service/api/login?u={username}&amp;amp;pw={password?}) to establish a ticket as an Alfresco user. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After you get the authentication ticket, you can use that ticket to execute a javascript webservice that uploads the file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample of such webscript can be found here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2012 17:52:02 GMT</pubDate>
    <dc:creator>wgonzalez</dc:creator>
    <dc:date>2012-04-04T17:52:02Z</dc:date>
    <item>
      <title>Enable(give permission) guest to upload content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/enable-give-permission-guest-to-upload-content/m-p/254195#M207325</link>
      <description>Hello ,How to enable guest to upload document.case: suppose we have 2 different applications from one application we are just giving the link from where anyone can upload link (link?q=key) of alfresco site.so at the time of uploading we can validate the key of trusted source and upload the document.</description>
      <pubDate>Wed, 04 Apr 2012 15:53:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/enable-give-permission-guest-to-upload-content/m-p/254195#M207325</guid>
      <dc:creator>negi</dc:creator>
      <dc:date>2012-04-04T15:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Enable(give permission) guest to upload content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/enable-give-permission-guest-to-upload-content/m-p/254196#M207326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Giving Guest access to upload files in the Repo is not a good practice, so you need to handle your internal validation carefully. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you can use the RESTful Login service (/alfresco/service/api/login?u={username}&amp;amp;pw={password?}) to establish a ticket as an Alfresco user. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After you get the authentication ticket, you can use that ticket to execute a javascript webservice that uploads the file. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sample of such webscript can be found here: &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts_Examples#File_Upload&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 17:52:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/enable-give-permission-guest-to-upload-content/m-p/254196#M207326</guid>
      <dc:creator>wgonzalez</dc:creator>
      <dc:date>2012-04-04T17:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Enable(give permission) guest to upload content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/enable-give-permission-guest-to-upload-content/m-p/254197#M207327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks wgonzalez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's perfectly fine. I have tried this example &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in File&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; upload.get.desc.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;webscript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;shortname&amp;gt;File Upload Form Sample&amp;lt;/shortname&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;description&amp;gt;Form for uploading file content and meta-data into Repository&amp;lt;/description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;url&amp;gt;/sample/upload&amp;lt;/url&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/webscript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;File: upload.post.desc.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;webscript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;shortname&amp;gt;File Upload Sample&amp;lt;/shortname&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;description&amp;gt;Upload file content and meta-data into Repository&amp;lt;/description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;url&amp;gt;/sample/upload&amp;lt;/url&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/webscript&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Get the ticket &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/api/login?u=admin&amp;amp;pw=admin" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/login?u=admin&amp;amp;pw=admin&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then use that form&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/sample/upload?alf_ticket=TICKET_a985d7ab7d9e101576a149a81d6e03693b48d303" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/sample/upload?alf_ticket=TICKET_a985d7ab7d9e101576a149a81d6e03693b48d303&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and chose the file and press upload&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;at that time it ask me for the login authentication(login pop up comes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so how to assign ticket for the post File: upload.post.desc.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 04:21:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/enable-give-permission-guest-to-upload-content/m-p/254197#M207327</guid>
      <dc:creator>pankajnegi</dc:creator>
      <dc:date>2012-04-05T04:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Enable(give permission) guest to upload content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/enable-give-permission-guest-to-upload-content/m-p/254198#M207328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure it's a good idea to have the password hardcoded and sent out in the clear to get the ticket.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should have a look at the "runas" property for webscripts as discussed in this topic it might better suit your needs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=36&amp;amp;t=43729" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=36&amp;amp;t=43729&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 08:30:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/enable-give-permission-guest-to-upload-content/m-p/254198#M207328</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2012-04-05T08:30:09Z</dc:date>
    </item>
  </channel>
</rss>

