<?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: Example of RESTful upload using curl please. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/example-of-restful-upload-using-curl-please/m-p/238963#M192093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please check my Curl based shell script to upload content to Alfresco repository: &lt;/SPAN&gt;&lt;A href="http://louise.hu/poet/?p=4529" rel="nofollow noopener noreferrer"&gt;http://louise.hu/poet/?p=4529&lt;/A&gt;&lt;SPAN&gt; (works with HTTP and HTTPS connections too)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 May 2010 15:18:54 GMT</pubDate>
    <dc:creator>louise</dc:creator>
    <dc:date>2010-05-29T15:18:54Z</dc:date>
    <item>
      <title>Example of RESTful upload using curl please.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/example-of-restful-upload-using-curl-please/m-p/238960#M192090</link>
      <description>This forum would really benefit from a generic example of "how to" upload a file using the command line utility curl.I can figure out the rest if I can see what's required … and I don't have time to learn JAVA to accomplish this (our project is PHP).From searching this forum it's clear that I'm not</description>
      <pubDate>Thu, 08 Apr 2010 22:01:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/example-of-restful-upload-using-curl-please/m-p/238960#M192090</guid>
      <dc:creator>billmce</dc:creator>
      <dc:date>2010-04-08T22:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Example of RESTful upload using curl please.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/example-of-restful-upload-using-curl-please/m-p/238961#M192091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are some examples of curl with post in jeff pots CMIS examples did you already have a look at those?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case if you haven't&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is the link.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/archives/2009/04/10/959" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/archives/2009/04/10/959&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 13:58:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/example-of-restful-upload-using-curl-please/m-p/238961#M192091</guid>
      <dc:creator>faisal</dc:creator>
      <dc:date>2010-04-09T13:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: Example of RESTful upload using curl please.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/example-of-restful-upload-using-curl-please/m-p/238962#M192092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I've struggled through Jeff Potts examples (and I have his book also).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I end up with formdata not defined errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're familiar with Jeff Potts book, he creates an upload script at about page 261.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since my application already knows the file that it wants to upload into the repository I need to skip the GET and go directly to the PUT.&amp;nbsp;&amp;nbsp; I can't work-out how to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see numerous similar unanswered questions dealing with "formdata is not defined".&amp;nbsp; I think it's a very common problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 15:06:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/example-of-restful-upload-using-curl-please/m-p/238962#M192092</guid>
      <dc:creator>billmce</dc:creator>
      <dc:date>2010-04-09T15:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Example of RESTful upload using curl please.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/example-of-restful-upload-using-curl-please/m-p/238963#M192093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please check my Curl based shell script to upload content to Alfresco repository: &lt;/SPAN&gt;&lt;A href="http://louise.hu/poet/?p=4529" rel="nofollow noopener noreferrer"&gt;http://louise.hu/poet/?p=4529&lt;/A&gt;&lt;SPAN&gt; (works with HTTP and HTTPS connections too)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 May 2010 15:18:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/example-of-restful-upload-using-curl-please/m-p/238963#M192093</guid>
      <dc:creator>louise</dc:creator>
      <dc:date>2010-05-29T15:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Example of RESTful upload using curl please.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/example-of-restful-upload-using-curl-please/m-p/238964#M192094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Simple example, tested against Alfresco Community 4.0.d on Windows XP&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;curl -v -X POST -F filedata=@myUpload.doc -F siteid=mysite -F containerid=documentLibrary -F uploaddirectory=/uploads &lt;A href="http://username:password@localhost:8080/alfresco/service/api/upload" rel="nofollow noopener noreferrer"&gt;http://username:password@localhost:8080/alfresco/service/api/upload&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This will upload into &lt;/SPAN&gt;&lt;EM&gt;documentLibrary/uploads&lt;/EM&gt;&lt;SPAN&gt; within the specific Share site (mysite). Note that the user performing the upload must be a member of that Share site (and presumably needs at least Contributor access?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm unsure why the leading slash is needed for the &lt;/SPAN&gt;&lt;EM&gt;uploaddirectory&lt;/EM&gt;&lt;SPAN&gt;, since the script &lt;/SPAN&gt;&lt;EM&gt;seems &lt;/EM&gt;&lt;SPAN&gt;to remove it again. But omitting it causes the file to be saved into the parent folder i.e. documentLibrary!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The actual webscript is located in tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\webscripts\org\alfresco\repository\upload - looking at the source is the best way to understand it as the online Alfresco documentation is not very detailed (&lt;/SPAN&gt;&lt;A href="http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Freferences%2FRESTful-UploadUploadPost.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Freferences%2FRESTful-UploadUploadPost.html&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jun 2012 11:59:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/example-of-restful-upload-using-curl-please/m-p/238964#M192094</guid>
      <dc:creator>dnallsopp</dc:creator>
      <dc:date>2012-06-27T11:59:04Z</dc:date>
    </item>
  </channel>
</rss>

