<?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 file in Alfresco? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48557#M18894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;have not tried using&amp;nbsp; "&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;cmis_repository_wrapper" but have generated a fresh code without that - check below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;A href="https://migration33.stage.lithium.com/docs/DOC-7997"&gt;php_upload.docx&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.alfresco.com/servlet/JiveServlet/downloadBody/7997-102-1-14122/php_upload.docx" title="https://community.alfresco.com/servlet/JiveServlet/downloadBody/7997-102-1-14122/php_upload.docx" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/servlet/JiveServlet/downloadBody/7997-102-1-14122/php_upload.docx&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;PHP HttpRequest:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;lt;?php&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;$request = new HttpRequest();&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN&gt;$request-&amp;gt;setUrl('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root');" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root');&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;$request-&amp;gt;setMethod(HTTP_METH_POST);&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;$request-&amp;gt;setQueryData(array(&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'objectId' =&amp;gt; 'd140f140-2701-4ca6-8a80-8cdc9cd3b72c',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'cmisaction' =&amp;gt; 'createDocument',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'propertyId[0]' =&amp;gt; 'cmis:name',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'propertyValue[0]' =&amp;gt; 'ThirdPartyFormApigee.jpg',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'propertyId[1]' =&amp;gt; 'cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectTypeId',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'propertyValue[1]' =&amp;gt; 'cmis:document',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'alf_ticket' =&amp;gt; 'TICKET_3375c54fb50e6251d9e57f696483708ff9cc653a'&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;));&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;$request-&amp;gt;setHeaders(array(&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp; 'cache-control' =&amp;gt; 'no-cache',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'content-type' =&amp;gt; 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW'&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;));&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;$request-&amp;gt;setBody('------WebKitFormBoundary7MA4YWxkTrZu0gW&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Content-Disposition: form-data; name=""; filename="Penguins.jpg"&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Content-Type: image/jpeg&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;------WebKitFormBoundary7MA4YWxkTrZu0gW--');&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;try {&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; $response = $request-&amp;gt;send();&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; echo $response-&amp;gt;getBody();&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;} catch (HttpException $ex) {&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; echo $ex;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; border: none; padding: 0in;"&gt;}&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; border: none; padding: 0in;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; border: none; padding: 0in;"&gt;============================&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; border: none; padding: 0in;"&gt;Please let me know if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2018 04:03:55 GMT</pubDate>
    <dc:creator>ranjeetsi</dc:creator>
    <dc:date>2018-08-15T04:03:55Z</dc:date>
    <item>
      <title>How to upload file in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48554#M18891</link>
      <description>How to upload file in Alfresco via API?Currently I am using&amp;nbsp;&amp;nbsp;'cmis_repository_wrapper' class (please see attachment ) but not able to find related API for file upload?Could you please guide me where I can get Alfresco API for file upload in PHP?It would be good if you can share any example with it.T</description>
      <pubDate>Wed, 08 Aug 2018 14:43:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48554#M18891</guid>
      <dc:creator>rspl</dc:creator>
      <dc:date>2018-08-08T14:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48555#M18892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the below github url for &lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;You can find a reference implementation in PHP using&lt;/SPAN&gt;&amp;nbsp;CMIS api&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink10" href="https://github.com/donbalon4/API_Alfresco" title="https://github.com/donbalon4/API_Alfresco" rel="nofollow noopener noreferrer"&gt;https://github.com/donbalon4/API_Alfresco&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 16:46:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48555#M18892</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2018-08-09T16:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48556#M18893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I have looked into given GIT repo and found that it is using 'uploadFile' function but not able to get where I can give destination path (Workspace path).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to upload file into Alfresco workspace (in particular folder) . Just like we are uploading file into Alfresco after logged in into the Alfresco sysytem. Same thing I need to do via API so I don't need to login in to Alfresco server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know that if you have any question. Could you please reply on this question asap.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 09:07:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48556#M18893</guid>
      <dc:creator>rspl</dc:creator>
      <dc:date>2018-08-14T09:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48557#M18894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;have not tried using&amp;nbsp; "&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;cmis_repository_wrapper" but have generated a fresh code without that - check below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;A href="https://migration33.stage.lithium.com/docs/DOC-7997"&gt;php_upload.docx&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.alfresco.com/servlet/JiveServlet/downloadBody/7997-102-1-14122/php_upload.docx" title="https://community.alfresco.com/servlet/JiveServlet/downloadBody/7997-102-1-14122/php_upload.docx" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/servlet/JiveServlet/downloadBody/7997-102-1-14122/php_upload.docx&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;PHP HttpRequest:&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;lt;?php&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;$request = new HttpRequest();&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN&gt;$request-&amp;gt;setUrl('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root');" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root');&lt;/A&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;$request-&amp;gt;setMethod(HTTP_METH_POST);&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;$request-&amp;gt;setQueryData(array(&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'objectId' =&amp;gt; 'd140f140-2701-4ca6-8a80-8cdc9cd3b72c',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'cmisaction' =&amp;gt; 'createDocument',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'propertyId[0]' =&amp;gt; 'cmis:name',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'propertyValue[0]' =&amp;gt; 'ThirdPartyFormApigee.jpg',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'propertyId[1]' =&amp;gt; 'cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectTypeId',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'propertyValue[1]' =&amp;gt; 'cmis:document',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'alf_ticket' =&amp;gt; 'TICKET_3375c54fb50e6251d9e57f696483708ff9cc653a'&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;));&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;$request-&amp;gt;setHeaders(array(&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp; 'cache-control' =&amp;gt; 'no-cache',&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; 'content-type' =&amp;gt; 'multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW'&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;));&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;$request-&amp;gt;setBody('------WebKitFormBoundary7MA4YWxkTrZu0gW&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Content-Disposition: form-data; name=""; filename="Penguins.jpg"&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Content-Type: image/jpeg&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;------WebKitFormBoundary7MA4YWxkTrZu0gW--');&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;try {&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; $response = $request-&amp;gt;send();&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; echo $response-&amp;gt;getBody();&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;} catch (HttpException $ex) {&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; echo $ex;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; border: none; padding: 0in;"&gt;}&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; border: none; padding: 0in;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; border: none; padding: 0in;"&gt;============================&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; border: none; padding: 0in;"&gt;Please let me know if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 04:03:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48557#M18894</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2018-08-15T04:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48558#M18895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also check for the url&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cgit.drupalcode.org/cmis/tree/cmis_common/lib/cmis_repository_wrapper.php?id=6318766b3126da4654e02c72196fb9c9c47a781d" title="http://cgit.drupalcode.org/cmis/tree/cmis_common/lib/cmis_repository_wrapper.php?id=6318766b3126da4654e02c72196fb9c9c47a781d" rel="nofollow noopener noreferrer"&gt;http://cgit.drupalcode.org/cmis/tree/cmis_common/lib/cmis_repository_wrapper.php?id=6318766b3126da4654e02c72196fb9c9c47a…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;postObject method&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 12:15:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48558#M18895</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2018-08-15T12:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48559#M18896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ranjeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You so much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked and tried your &lt;STRONG&gt;PHP CURL&lt;/STRONG&gt; code but it is not giving me proper uploading functionality as i want.&lt;/P&gt;&lt;P&gt;With your code i am able to just create a new blank file on alfresco rather than uploading proper file from local.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attaching a screenshot of files which are creating on server with the help of your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/alfresco/22564_Alfresco » Document Library.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can see that it is creating blank image files with same name as of file which i want to upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please help me out here ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 09:04:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48559#M18896</guid>
      <dc:creator>rspl</dc:creator>
      <dc:date>2018-08-16T09:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48560#M18897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this part of the code you will have to pass the content stream&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;$request-&amp;gt;setBody('------WebKitFormBoundary7MA4YWxkTrZu0gW&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;Content-Disposition: form-data; name=""; filename="Penguins.jpg"&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;Content-Type: image/jpeg&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;------WebKitFormBoundary7MA4YWxkTrZu0gW--');&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;On your system - it is not able to get content of the jpg file.&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;You have to set the body with content stream by getting the stream from the file. This is case of createDocument&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;The above way is independent of chemistry api and uses open http call&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;Please try and let me know if any questions. You may refer as below:&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;Other way you are trying is importing the wrapper: and creating from source.&lt;/P&gt;&lt;P style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px 0px 0.0001pt;"&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/36717011/how-to-do-file-versioning-when-uploading-files-to-alfresco-using-cmis-php" title="https://stackoverflow.com/questions/36717011/how-to-do-file-versioning-when-uploading-files-to-alfresco-using-cmis-php" rel="nofollow noopener noreferrer"&gt;How to do file versioning when uploading files to Alfresco using CMIS PHP - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;CODE style="background-color: #eff0f1; border: 0px; font-weight: inherit; margin: 0px;"&gt;&lt;SPAN class="" style="color: #303336; border: 0px; font-weight: inherit; font-size: 13px; margin: 0px;"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="" style="color: #393318; background-color: #eff0f1; border: 0px; margin: 0px 0px 1em; padding: 5px;"&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 17:36:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48560#M18897</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2018-08-16T17:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48561#M18898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this url also -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/dkd/php-cmis-client/blob/master/examples/CreateDocument.php" title="https://github.com/dkd/php-cmis-client/blob/master/examples/CreateDocument.php" rel="nofollow noopener noreferrer"&gt;php-cmis-client/CreateDocument.php at master · dkd/php-cmis-client · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 17:37:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48561#M18898</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2018-08-16T17:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48562#M18899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ranjeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I am not getting, why we are creating file instead of file upload? Is there any Alfresco API for upload file in particular folder?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In creating file, issue will come and it is not required. We need to upload file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide best contact number/email so I can talk to you and complete this feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 07:34:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48562#M18899</guid>
      <dc:creator>rspl</dc:creator>
      <dc:date>2018-08-20T07:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file in Alfresco?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48563#M18900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the OASIS specification of what apis does it support:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.oasis-open.org/cmis/CMIS/v1.1/os/CMIS-v1.1-os.pdf" title="http://docs.oasis-open.org/cmis/CMIS/v1.1/os/CMIS-v1.1-os.pdf" rel="nofollow noopener noreferrer"&gt;http://docs.oasis-open.org/cmis/CMIS/v1.1/os/CMIS-v1.1-os.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upload a file to any env typically means - 1)have the content stream or input stream of data and then 2)create a new document .&lt;/P&gt;&lt;P&gt;You take the filestream and then create a new document at destination system using that input stream.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The apis&amp;nbsp;available in CMIS are&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) create document&lt;/P&gt;&lt;P&gt;b)create document from source&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once i get time - will try to get complete code - but in meantime look on the below:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/dkd/php-cmis-client/blob/master/examples/CreateDocument.php" title="https://github.com/dkd/php-cmis-client/blob/master/examples/CreateDocument.php" rel="nofollow noopener noreferrer"&gt;php-cmis-client/CreateDocument.php at master · dkd/php-cmis-client · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 15:51:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-upload-file-in-alfresco/m-p/48563#M18900</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2018-08-20T15:51:54Z</dc:date>
    </item>
  </channel>
</rss>

