<?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: Alternative for alfresco/service/api/upload in alfresco 5.1 community in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32302#M13684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...and this is exactly the way it should work.&lt;/P&gt;&lt;P&gt;Is destination in the form "workspace://SpacesStore/..." and really existing? (not existing should give Error 400)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it's an internal server error: anything in the alfresco logs - most likely a permission problem or error in a rule script? (catalina.out, alfresco.log)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Apr 2017 09:42:29 GMT</pubDate>
    <dc:creator>mehe</dc:creator>
    <dc:date>2017-04-03T09:42:29Z</dc:date>
    <item>
      <title>Alternative for alfresco/service/api/upload in alfresco 5.1 community</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32299#M13681</link>
      <description>Hi,I was using alfresco 4.2 community and used the api alfresco/service/api/upload for uploading documents from external apps to alfresco. Now its upgraded to 5.1 . but the api changed. please help me to get the alternative to upload the document using api.Thanks,Prasobh</description>
      <pubDate>Mon, 03 Apr 2017 06:10:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32299#M13681</guid>
      <dc:creator>prasobhraj</dc:creator>
      <dc:date>2017-04-03T06:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for alfresco/service/api/upload in alfresco 5.1 community</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32300#M13682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;alfresco/service/api/upload is still there - should work as usual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;curl -u ALFUSER:ALFPW -X POST -F filedata=@TheFile -F destination="NoderefOfTheFolderUploadingTo"&amp;nbsp; "http://theHost:port/alfresco/service/api/upload"‍&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;You could write your own upload web script like in&amp;nbsp;&lt;A class="link-titled" href="http://docs.alfresco.com/community/tasks/ws-forms-process.html" title="http://docs.alfresco.com/community/tasks/ws-forms-process.html" rel="nofollow noopener noreferrer"&gt;Processing multipart forms | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or, if you are in JS context, use alfresco-js-api.js uploadFile &lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-js-api#upload-file" title="https://github.com/Alfresco/alfresco-js-api#upload-file" rel="nofollow noopener noreferrer"&gt;GitHub - Alfresco/alfresco-js-api: This project provides a JavaScript client API into the Alfresco REST API and Activiti…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just saw: The last option is not true, you would need 5.2 for the JS lib...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 07:38:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32300#M13682</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-04-03T07:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for alfresco/service/api/upload in alfresco 5.1 community</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32301#M13683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;am getting the below error&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "status" :&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "code" : 500,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "Internal Error",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "description" : "An error inside the HTTP server which prevented it from fulfilling the request."&lt;BR /&gt;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "message" : "030323762 Unexpected error occurred during upload of new content.",&lt;BR /&gt;&amp;nbsp; "exception" : "",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "callstack" :&lt;BR /&gt;&amp;nbsp; [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ],&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "server" : "Community v5.1.0 (r127059-b7) schema 10,001",&lt;BR /&gt;&amp;nbsp; "time" : "Apr 3, 2017 12:56:35 PM"&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;i was using python code to upload which was successful for 4.2. &lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;upload_file = open(folder+secure_filename(file), 'rb') &lt;BR /&gt;&lt;SPAN&gt;url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://IP:PORT/alfresco/service/api/upload" rel="nofollow noopener noreferrer" target="_blank"&gt;http://IP&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ORT/alfresco/service/api/upload&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;auth = (USERNAME, PASSWORD)&lt;BR /&gt;files = {"filedata": upload_file}&lt;BR /&gt;data = {"destination": id of space to upload}&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;r = requests.post(url, files=files, data=data, auth=auth)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Please advice if there any changes to be made&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 09:19:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32301#M13683</guid>
      <dc:creator>prasobhraj</dc:creator>
      <dc:date>2017-04-03T09:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for alfresco/service/api/upload in alfresco 5.1 community</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32302#M13684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...and this is exactly the way it should work.&lt;/P&gt;&lt;P&gt;Is destination in the form "workspace://SpacesStore/..." and really existing? (not existing should give Error 400)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it's an internal server error: anything in the alfresco logs - most likely a permission problem or error in a rule script? (catalina.out, alfresco.log)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 09:42:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32302#M13684</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-04-03T09:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for alfresco/service/api/upload in alfresco 5.1 community</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32303#M13685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be using CMIS for this. Grab a library from &lt;A href="http://chemistry.apache.org/" rel="nofollow noopener noreferrer"&gt;Apache Chemistry&lt;/A&gt; and then use the library from your apps that need to create, read, update, and delete documents (including getting/setting properties) from the Alfresco repository.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMIS works with 4.2 as well as newer versions and is much more stable than any other API available for Alfresco.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 14:44:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32303#M13685</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-04-03T14:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for alfresco/service/api/upload in alfresco 5.1 community</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32304#M13686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was using cmislib for getting the node id of the space where the documents to be uploaded. In 4.2 &lt;SPAN style="font-size: 11.0pt; color: black;"&gt;node.id&lt;/SPAN&gt; was returning &lt;SPAN style="font-size: 12.0pt; color: black;"&gt;workspace://SpacesStore/xxxxxxxxxxxxxx&lt;/SPAN&gt;. but in 5.1 it just returns &lt;SPAN style="font-size: 12.0pt; color: black;"&gt;xxxxxxxxxxxxxxxxxx. this one i changed to node.getProperties()["alfcmis:nodeRef"]. noW it got worked . &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 07:27:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32304#M13686</guid>
      <dc:creator>prasobhraj</dc:creator>
      <dc:date>2017-04-06T07:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Alternative for alfresco/service/api/upload in alfresco 5.1 community</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32305#M13687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;glad you've got it working. The shortened "id" is now present in nearly the whole new REST APIs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 07:56:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alternative-for-alfresco-service-api-upload-in-alfresco-5-1/m-p/32305#M13687</guid>
      <dc:creator>mehe</dc:creator>
      <dc:date>2017-04-06T07:56:59Z</dc:date>
    </item>
  </channel>
</rss>

