<?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: Upload a file to a specific folder in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/upload-a-file-to-a-specific-folder/m-p/96456#M28312</link>
    <description>&lt;P&gt;"&lt;SPAN&gt;destination&lt;/SPAN&gt;" should be the nodeRef of the target folder.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are&amp;nbsp; uploading to a site, then siteId and container id can be provided. Else you can pass nodeRef of the existing folder using destination parameter.&lt;I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;You can use "uploaddirectory" in combination with either&amp;nbsp;destination or&amp;nbsp;siteid and containerid (if uploading to a site). where upload directory is a subfolder&lt;/P&gt;

&lt;P&gt;&lt;U&gt;Here is the detailed description for upload api:&lt;/U&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;H1 class="page-header" id="toc-hId-1849470955"&gt;&lt;SPAN style="font-family: inherit; font-size: 16px;"&gt;Upload file content and meta-data into repository.&lt;/SPAN&gt;&lt;/H1&gt;
&lt;DIV class="region region-content"&gt;
&lt;SECTION id="block-system-main" class="block block-system clearfix"&gt;
&lt;DIV id="node-732911" class="node node-documentation-page node-promoted clearfix"&gt;
&lt;DIV class="content"&gt;
&lt;DIV class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;
&lt;DIV class="field-items"&gt;
&lt;DIV class="field-item even"&gt;
&lt;DIV class="body refbody"&gt;
&lt;DIV class="section refsyn"&gt;&lt;SAMP class="ph codeph"&gt;POST /alfresco/service/api/upload&lt;/SAMP&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;
&lt;P class="p"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="p"&gt;HTML form data
&lt;UL class="ul"&gt;
&lt;LI class="li"&gt;filedata, (mandatory) HTML type file&lt;/LI&gt;
&lt;LI class="li"&gt;You must specify one of:
&lt;UL class="ul"&gt;
&lt;LI class="li"&gt;destination (the folder NodeRef where the node will be created)&lt;/LI&gt;
&lt;LI class="li"&gt;updateNodeRef (the NodeRef of an existing node that will be updated)&lt;/LI&gt;
&lt;LI class="li"&gt;siteid and containerid (the Site name and the container in that site where the document will be created)&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;uploaddirectory - name of the folder (either in the site container or the destination) where the document will be uploaded. This folder must already exist&lt;/LI&gt;
&lt;LI class="li"&gt;description - Description for a version update (versionDescription)&lt;/LI&gt;
&lt;LI class="li"&gt;contenttype - The content type that this document should be specialised to&lt;/LI&gt;
&lt;LI class="li"&gt;majorversion&lt;/LI&gt;
&lt;LI class="li"&gt;overwrite&lt;/LI&gt;
&lt;LI class="li"&gt;thumbnails&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV class="p"&gt;Return content
&lt;UL class="ul"&gt;
&lt;LI class="li"&gt;nodeRef&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;P class="p"&gt;Return status: STATUS_OK (200)&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;The web script description document specifies the following options:&lt;/DIV&gt;
&lt;TABLE class="simpletable properties" border="1" summary="" cellspacing="0" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH id="d435612e155-value" align="left" valign="bottom"&gt;Value&lt;/TH&gt;
&lt;TH id="d435612e155-desc" align="left" valign="bottom"&gt;Description&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;json&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The default response format&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;user&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The authentication access&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;required&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The transaction level&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;any&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The format style&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/SECTION&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 09 Oct 2019 14:24:06 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2019-10-09T14:24:06Z</dc:date>
    <item>
      <title>Upload a file to a specific folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upload-a-file-to-a-specific-folder/m-p/96455#M28311</link>
      <description>&lt;P&gt;Hi, i'm using alfresco 5.2 and i'm using rest api. I recently developed my software to upload a file to admin file manager. What i want to do right now is, upload my file to a specific folder in admin.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Imagine i have a folder named "reports" and my files should upload to "reports" folder.&lt;BR /&gt;&lt;BR /&gt;File upload as "filedata" and i tried to provide "&lt;SPAN&gt;destination" as "sample" and it wont upload my file to "sample" folder. It just upload to the root of the folder. I provided my folder nodeRef as folder nodeRef. And then i tried to upload back again using "uploaddirectory" and for this i provided "sample" which is my folder name. But nothing worked.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What should i do in my case ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 09:34:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upload-a-file-to-a-specific-folder/m-p/96455#M28311</guid>
      <dc:creator>Dushan</dc:creator>
      <dc:date>2019-10-08T09:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Upload a file to a specific folder</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upload-a-file-to-a-specific-folder/m-p/96456#M28312</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;destination&lt;/SPAN&gt;" should be the nodeRef of the target folder.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are&amp;nbsp; uploading to a site, then siteId and container id can be provided. Else you can pass nodeRef of the existing folder using destination parameter.&lt;I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;You can use "uploaddirectory" in combination with either&amp;nbsp;destination or&amp;nbsp;siteid and containerid (if uploading to a site). where upload directory is a subfolder&lt;/P&gt;

&lt;P&gt;&lt;U&gt;Here is the detailed description for upload api:&lt;/U&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;
&lt;H1 class="page-header" id="toc-hId-1849470955"&gt;&lt;SPAN style="font-family: inherit; font-size: 16px;"&gt;Upload file content and meta-data into repository.&lt;/SPAN&gt;&lt;/H1&gt;
&lt;DIV class="region region-content"&gt;
&lt;SECTION id="block-system-main" class="block block-system clearfix"&gt;
&lt;DIV id="node-732911" class="node node-documentation-page node-promoted clearfix"&gt;
&lt;DIV class="content"&gt;
&lt;DIV class="field field-name-body field-type-text-with-summary field-label-hidden"&gt;
&lt;DIV class="field-items"&gt;
&lt;DIV class="field-item even"&gt;
&lt;DIV class="body refbody"&gt;
&lt;DIV class="section refsyn"&gt;&lt;SAMP class="ph codeph"&gt;POST /alfresco/service/api/upload&lt;/SAMP&gt;&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;
&lt;P class="p"&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="p"&gt;HTML form data
&lt;UL class="ul"&gt;
&lt;LI class="li"&gt;filedata, (mandatory) HTML type file&lt;/LI&gt;
&lt;LI class="li"&gt;You must specify one of:
&lt;UL class="ul"&gt;
&lt;LI class="li"&gt;destination (the folder NodeRef where the node will be created)&lt;/LI&gt;
&lt;LI class="li"&gt;updateNodeRef (the NodeRef of an existing node that will be updated)&lt;/LI&gt;
&lt;LI class="li"&gt;siteid and containerid (the Site name and the container in that site where the document will be created)&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI class="li"&gt;uploaddirectory - name of the folder (either in the site container or the destination) where the document will be uploaded. This folder must already exist&lt;/LI&gt;
&lt;LI class="li"&gt;description - Description for a version update (versionDescription)&lt;/LI&gt;
&lt;LI class="li"&gt;contenttype - The content type that this document should be specialised to&lt;/LI&gt;
&lt;LI class="li"&gt;majorversion&lt;/LI&gt;
&lt;LI class="li"&gt;overwrite&lt;/LI&gt;
&lt;LI class="li"&gt;thumbnails&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;DIV class="p"&gt;Return content
&lt;UL class="ul"&gt;
&lt;LI class="li"&gt;nodeRef&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;P class="p"&gt;Return status: STATUS_OK (200)&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="section refsyn"&gt;The web script description document specifies the following options:&lt;/DIV&gt;
&lt;TABLE class="simpletable properties" border="1" summary="" cellspacing="0" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH id="d435612e155-value" align="left" valign="bottom"&gt;Value&lt;/TH&gt;
&lt;TH id="d435612e155-desc" align="left" valign="bottom"&gt;Description&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;json&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The default response format&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;user&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The authentication access&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;required&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The transaction level&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR class="strow property"&gt;
&lt;TD valign="top" class="stentry propvalue"&gt;&lt;SAMP class="ph codeph"&gt;any&lt;/SAMP&gt;&lt;/TD&gt;
&lt;TD valign="top" class="stentry propdesc"&gt;The format style&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/SECTION&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Oct 2019 14:24:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upload-a-file-to-a-specific-folder/m-p/96456#M28312</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-10-09T14:24:06Z</dc:date>
    </item>
  </channel>
</rss>

