<?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 document into alfresco using Angular JS without user credentials in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/upload-document-into-alfresco-using-angular-js-without-user/m-p/79760#M24772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default it is not possible to upload documents without authentication details into Alfresco since all modifying APIs require authentication to properly determine user privileges and avoid unauthenticated spam. If you need to have unauthenticated upload (very dangerous) you'd first need to create some custom ReST API via web scripts for that where you might impose any sort of controls / protection yourself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2018 07:03:49 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-04-05T07:03:49Z</dc:date>
    <item>
      <title>Upload document into alfresco using Angular JS without user credentials</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upload-document-into-alfresco-using-angular-js-without-user/m-p/79759#M24771</link>
      <description>Hi Everyone,I need help for&amp;nbsp;Upload documents into alfresco using Angula JS without user credentials.document upload with metadata and site-nameCan anyone help me out please.</description>
      <pubDate>Wed, 04 Apr 2018 06:25:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upload-document-into-alfresco-using-angular-js-without-user/m-p/79759#M24771</guid>
      <dc:creator>sandeepreddy1</dc:creator>
      <dc:date>2018-04-04T06:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Upload document into alfresco using Angular JS without user credentials</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upload-document-into-alfresco-using-angular-js-without-user/m-p/79760#M24772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By default it is not possible to upload documents without authentication details into Alfresco since all modifying APIs require authentication to properly determine user privileges and avoid unauthenticated spam. If you need to have unauthenticated upload (very dangerous) you'd first need to create some custom ReST API via web scripts for that where you might impose any sort of controls / protection yourself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 07:03:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upload-document-into-alfresco-using-angular-js-without-user/m-p/79760#M24772</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-04-05T07:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Upload document into alfresco using Angular JS without user credentials</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/upload-document-into-alfresco-using-angular-js-without-user/m-p/79761#M24773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-avatarid="2617" data-externalid="" data-online="false" data-presence="null" data-userid="73554" data-username="afaust" href="https://community.alfresco.com/people/afaust" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: underline; font-size: 14px;" rel="nofollow noopener noreferrer"&gt;Axel Faust&lt;/A&gt;&lt;SPAN style="color: #8bc34a; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #727174;"&gt;Thank you so much for the reply ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #727174;"&gt;actually i made one external application that application have AD credentials, After logged in that application i am showing alfresco documents. in that page i need to add one more button like upload documents into alfresco.&amp;nbsp; in this i need help&amp;nbsp; for upload document without user credentials.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174;"&gt;I am following this code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #727174;"&gt;@RequestMapping(value = "/upload",headers=("content-type=multipart/*"), method = RequestMethod.POST)&lt;BR /&gt; public ResponseEntity&amp;lt;String&amp;gt; upload(HttpServletRequest request,&lt;BR /&gt; @RequestParam String siteName,&lt;BR /&gt; @RequestParam String contentAuthor,&lt;BR /&gt; @RequestParam String userid,&lt;BR /&gt; @RequestParam String password,&lt;BR /&gt; @RequestParam("uploadDirectoryPath") String uploadDirectory,&lt;BR /&gt; &lt;BR /&gt; @RequestParam("uploadDocumentPath") MultipartFile uploadDocumentPath) {&lt;BR /&gt; Upload upload=new Upload();&lt;BR /&gt; try {&lt;BR /&gt; &lt;BR /&gt; String ipAddress = request.getHeader("X-FORWARDED-FOR"); &lt;BR /&gt; if (ipAddress == null) { &lt;BR /&gt; ipAddress = request.getRemoteAddr(); &lt;BR /&gt; }&lt;BR /&gt; LOG.info("IPADDRESS:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::"+ipAddress);&lt;BR /&gt; upload.setIpaddress(ipAddress);&lt;BR /&gt; upload.setRequestOn(DateUtils.getCurrentSystemTimestamp());&lt;BR /&gt; uploadManager.saveOrUpdate(upload);&lt;BR /&gt; &lt;BR /&gt; LOG.info("-----------------------------------------------jsonObj.length():"+uploadDocumentPath.getOriginalFilename());&lt;BR /&gt; String imagePath = "";&lt;BR /&gt; //String categoryName = "";&lt;BR /&gt; &lt;BR /&gt; upload.setSiteName(siteName);&lt;BR /&gt; upload.setContentAuthor(contentAuthor);&lt;BR /&gt; //upload.setContentTitle(URLEncoder.encode(contentTitle, "UTF-8"));;&lt;BR /&gt; upload.setUserid(userid);&lt;BR /&gt; upload.setPassword(password);&lt;BR /&gt; upload.setUploadDirectoryPath(uploadDirectory);&lt;BR /&gt; upload.setUploadDirectoryPath(uploadDocumentPath.getOriginalFilename());&lt;BR /&gt; /*final Part uploadDocumentPaths;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2018 07:16:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/upload-document-into-alfresco-using-angular-js-without-user/m-p/79761#M24773</guid>
      <dc:creator>sandeepreddy1</dc:creator>
      <dc:date>2018-04-05T07:16:42Z</dc:date>
    </item>
  </channel>
</rss>

