<?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: Internal error 500 on upload file from REST API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31082#M13177</link>
    <description>&lt;P&gt;I see the problem, your request is not able to pass the file content with the request. Passing file path in json payload won't work. I am not much familier with PHP so not 100% sure. You can check if the content is being passed properly. When sending the form data from postman, it was able to send the file content.&lt;/P&gt;
&lt;P&gt;If you want to use raw json data only then you can use base64 encoded string formation of the file data in the request alternatively.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2019 17:15:41 GMT</pubDate>
    <dc:creator>abhinavmishra14</dc:creator>
    <dc:date>2019-10-30T17:15:41Z</dc:date>
    <item>
      <title>Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31070#M13165</link>
      <description>Hi,I already had some trouble uploading a file from a node application to Alfresco, but this time I'm trying on a different way, and encountering different issue.var http = require("http");var options = {&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 'host': 'localhost',&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 'port': '8080',&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; 'path': '/alfresco/service/api/upload?alf_t</description>
      <pubDate>Thu, 01 Jun 2017 16:03:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31070#M13165</guid>
      <dc:creator>alexandreb</dc:creator>
      <dc:date>2017-06-01T16:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31071#M13166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From your code I haven't seen any destination path or noderef parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2017 03:07:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31071#M13166</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2017-06-03T03:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31072#M13167</link>
      <description>&lt;P&gt;i have this code but i can't upload file into enywhere.&lt;BR /&gt;can you give an example of&amp;nbsp;jsonData array syntax?&lt;BR /&gt;i have the default installation of alfresco and i have achieved to create direcory.&lt;BR /&gt;i cant find the way to upload file.&lt;BR /&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;BR /&gt;&lt;BR /&gt;//API Url&lt;BR /&gt;$url = '192.168.1.1:8080/alfresco/s/api/upload?alf_ticket=TICKET_e0113b837d77e99b3e0a33da110e12be52bded4e';&lt;BR /&gt;&lt;BR /&gt;//Initiate cURL.&lt;BR /&gt;$ch = curl_init($url);&lt;BR /&gt;&lt;BR /&gt;//The JSON data.&lt;BR /&gt;$jsonData = array(&lt;BR /&gt;"filedata"=&amp;gt; "test.txt",&lt;BR /&gt;"siteid"=&amp;gt; "siteName",&lt;BR /&gt;"containerid"=&amp;gt; "documentLibrary",&lt;BR /&gt;"description"=&amp;gt; "A shiny new node"&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;//Encode the array into JSON.&lt;BR /&gt;$jsonDataEncoded = json_encode($jsonData);&lt;BR /&gt;&lt;BR /&gt;//Tell cURL that we want to send a POST request.&lt;BR /&gt;curl_setopt($ch, CURLOPT_POST, 1);&lt;BR /&gt;&lt;BR /&gt;//Attach our encoded JSON string to the POST fields.&lt;BR /&gt;curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonDataEncoded);&lt;BR /&gt;&lt;BR /&gt;//Set the content type to application/json&lt;BR /&gt;curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));&lt;BR /&gt;&lt;BR /&gt;//Execute the request&lt;BR /&gt;$result = curl_exec($ch);&lt;/P&gt;&lt;P&gt;?&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 04:39:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31072#M13167</guid>
      <dc:creator>ni0ni0s</dc:creator>
      <dc:date>2019-10-24T04:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31073#M13168</link>
      <description>&lt;P&gt;seems like you are trying to upload content less object. I dont see the correct filedata option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please look at this documentation, you must pass all required params in order to get succesful response.&amp;nbsp;&lt;/P&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-16 lia-quilt-column-left lia-quilt-column-main-content"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
&lt;DIV class="lia-component-reply-list"&gt;
&lt;DIV class="linear-message-list message-list"&gt;
&lt;DIV id="lineardisplaymessageviewwrapper_0" class="lia-linear-display-message-view"&gt;
&lt;DIV class=""&gt;
&lt;DIV id="messageview_0" class="lia-panel-message message-uid-292577" data-lia-message-uid="292577"&gt;
&lt;DIV id="messageView2_1_0" class="lia-message-view-wrapper lia-js-data-messageUid-292577 lia-component-forums-widget-message-view-two" data-lia-message-uid="292577"&gt;
&lt;DIV class="MessageView lia-message-view-forum-message lia-message-view-display lia-row-standard-read lia-thread-reply lia-message-authored-by-you"&gt;
&lt;DIV class="lia-quilt lia-quilt-forum-message lia-quilt-layout-custom-message"&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-main-message"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-message-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV id="bodyDisplay_0" class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;
&lt;DIV class="lia-message-body-content"&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 id="toc-hId-1849470955" class="page-header" id="toc-hId-1849501767"&gt;&lt;SPAN&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;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="message-right-footer"&gt;
&lt;DIV id="kudosButtonV2_0" class="KudosButton lia-button-image-kudos-wrapper lia-component-kudos-widget-button-version-3 lia-component-kudos-widget-button-horizontal lia-component-kudos-widget-button lia-component-kudos-action lia-component-message-view-widget-kudos-action" data-lia-kudos-id="292577"&gt;
&lt;DIV class="lia-button-image-kudos lia-button-image-kudos-horizontal lia-button-image-kudos-disabled lia-button-image-kudos-not-kudoed lia-button-image-kudos-has-kudoes lia-button-image-kudos-has-kudos lia-button"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-08 lia-quilt-column-right lia-quilt-column-side-content"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV class="lia-panel lia-panel-standard CustomContent Chrome lia-component-common-widget-custom-content"&gt;
&lt;DIV class="lia-decoration-border"&gt;
&lt;DIV class="lia-decoration-border-top"&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-decoration-border-content"&gt;
&lt;DIV&gt;
&lt;DIV class="lia-panel-heading-bar-wrapper"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Oct 2019 14:53:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31073#M13168</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-10-28T14:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31074#M13169</link>
      <description>&lt;P&gt;there is no good description for everything. can you give an example?&lt;/P&gt;&lt;P&gt;$jsonData = array(&lt;BR /&gt;"filedata"=&amp;gt; "@test.txt",&lt;BR /&gt;"siteid"=&amp;gt; "defend",&lt;BR /&gt;"containerid"=&amp;gt; "documentLibrary",&lt;BR /&gt;"uploaddirectory"=&amp;gt; "./",&lt;BR /&gt;"description"=&amp;gt; "test",&lt;BR /&gt;"contenttype"=&amp;gt; "text/plain",&lt;BR /&gt;"majorversion"=&amp;gt; "1",&lt;BR /&gt;"overwrite"=&amp;gt; "1",&lt;BR /&gt;"thumbnails"=&amp;gt; ""&lt;BR /&gt;);&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 12:06:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31074#M13169</guid>
      <dc:creator>ni0ni0s</dc:creator>
      <dc:date>2019-10-29T12:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31075#M13170</link>
      <description>&lt;P&gt;I have used it with Java language. You can find the code and example here:&amp;nbsp;&lt;A href="http://javaworld-abhinav.blogspot.com/2014/09/upload-documents-to-alfresco-using-rest.html" target="_blank" rel="nofollow noopener noreferrer"&gt;http://javaworld-abhinav.blogspot.com/2014/09/upload-documents-to-alfresco-using-rest.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Parameters are highlighted.&lt;/P&gt;
&lt;P&gt;Source code example can be found here:&amp;nbsp;&lt;A href="https://github.com/abhinavmishra14/AlfrescoJMeterLoadTestPlugin/blob/master/src/com/jmeter/alfresco/utils/HttpUtils.java" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/abhinavmishra14/AlfrescoJMeterLoadTestPlugin/blob/master/src/com/jmeter/alfresco/utils/HttpUtils.java&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can take reference from that code and prepare the request similary.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 13:01:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31075#M13170</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-10-29T13:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31076#M13171</link>
      <description>&lt;P&gt;Thanks for your help but in php i have errors.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ "status" : { "code" : 500, "name" : "Internal Error", "description" : "An error inside the HTTP server which prevented it from fulfilling the request." }&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;i used:&lt;/P&gt;&lt;P&gt;$filename = "test.txt";&lt;/P&gt;&lt;P&gt;//The JSON data.&lt;BR /&gt;$jsonData = array(&lt;BR /&gt;"filedata"=&amp;gt; $filename,&lt;BR /&gt;"siteid"=&amp;gt; "defend",&lt;BR /&gt;"containerid"=&amp;gt; "documentLibrary",&lt;BR /&gt;"uploaddirectory"=&amp;gt; "uploadfolder",&lt;BR /&gt;"description"=&amp;gt; "its a description",&lt;BR /&gt;"contenttype"=&amp;gt; mime_content_type($filename),&lt;BR /&gt;"majorversion"=&amp;gt; "false",&lt;BR /&gt;"overwrite"=&amp;gt; "true"&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 14:00:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31076#M13171</guid>
      <dc:creator>ni0ni0s</dc:creator>
      <dc:date>2019-10-29T14:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31077#M13172</link>
      <description>&lt;P&gt;I am not familier with PHP, someone who is famililier with PHP may provide more details, but would it be possible for you to post the full error log. Both from alfresco(alfresco.log) and share (share.log) by sending a request with the code you have.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 14:52:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31077#M13172</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-10-29T14:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31078#M13173</link>
      <description>&lt;P&gt;share.log not showing error.&lt;/P&gt;&lt;P&gt;the requerst return this:&lt;BR /&gt;&lt;SPAN&gt;{ "status" : { "code" : 500, "name" : "Internal Error", "description" : "An error inside the HTTP server which prevented it from fulfilling the request." }, "message" : "09290256 Unexpected error occurred during upload of new content.", "exception" : "", "callstack" : [ ], "server" : "Community Early Access v6.0.0 (rbdba1485-b0) schema 10,200", "time" : "Oct 29, 2019 5:39:12 PM" }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and the alfresco.log returns&lt;/P&gt;&lt;P&gt;2019-10-29 17:41:19,060 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-14] Exception from executeScript: 09290257 Unexpected error occurred during upload of new content.&lt;BR /&gt;org.springframework.extensions.webscripts.WebScriptException: 09290257 Unexpected error occurred during upload of new content.&lt;BR /&gt;at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1124)&lt;BR /&gt;at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)&lt;BR /&gt;at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519)&lt;BR /&gt;at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)&lt;BR /&gt;at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587)&lt;BR /&gt;at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656)&lt;BR /&gt;at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:428)&lt;BR /&gt;at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308)&lt;BR /&gt;at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)&lt;BR /&gt;at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)&lt;BR /&gt;at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)&lt;BR /&gt;at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)&lt;BR /&gt;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)&lt;BR /&gt;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)&lt;BR /&gt;at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)&lt;BR /&gt;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)&lt;BR /&gt;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)&lt;BR /&gt;at org.alfresco.module.aosmodule.service.ContextRootFilter.doFilter(ContextRootFilter.java:93)&lt;BR /&gt;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)&lt;BR /&gt;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)&lt;BR /&gt;at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)&lt;BR /&gt;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)&lt;BR /&gt;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)&lt;BR /&gt;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)&lt;BR /&gt;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)&lt;BR /&gt;at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)&lt;BR /&gt;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)&lt;BR /&gt;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)&lt;BR /&gt;at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)&lt;BR /&gt;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)&lt;BR /&gt;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)&lt;BR /&gt;at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)&lt;BR /&gt;at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)&lt;BR /&gt;at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2492)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)&lt;BR /&gt;at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: org.mozilla.javascript.JavaScriptException: ReferenceError: Unexpected error occurred during upload of new content. (classpath*:alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js#519)&lt;BR /&gt;at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_upload_upload_post_js_24._c_main_6(classpath*:alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js:519)&lt;BR /&gt;at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_upload_upload_post_js_24.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js)&lt;BR /&gt;at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:74)&lt;BR /&gt;at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_upload_upload_post_js_24._c_script_0(classpath*:alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js:523)&lt;BR /&gt;at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_upload_upload_post_js_24.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js)&lt;BR /&gt;at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)&lt;BR /&gt;at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)&lt;BR /&gt;at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_upload_upload_post_js_24.call(classpath*:alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js)&lt;BR /&gt;at org.mozilla.javascript.gen.classpath__alfresco_templates_webscripts_org_alfresco_repository_upload_upload_post_js_24.exec(classpath*:alfresco/templates/webscripts/org/alfresco/repository/upload/upload.post.js)&lt;BR /&gt;at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:509)&lt;BR /&gt;at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:207)&lt;BR /&gt;at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:219)&lt;BR /&gt;at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:181)&lt;BR /&gt;at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:109)&lt;BR /&gt;at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376)&lt;BR /&gt;at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 15:42:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31078#M13173</guid>
      <dc:creator>ni0ni0s</dc:creator>
      <dc:date>2019-10-29T15:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31079#M13174</link>
      <description>&lt;P&gt;Thanks let me review the log. Additonally can you also try to upload the same file via Any rest client such as postman and see what you get? use the same file and provide the same parameters.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 15:52:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31079#M13174</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-10-29T15:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31080#M13175</link>
      <description>&lt;P&gt;postman and form-data working nice.&lt;/P&gt;&lt;P&gt;postman and raw json not working. same error.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 15:57:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31080#M13175</guid>
      <dc:creator>ni0ni0s</dc:creator>
      <dc:date>2019-10-29T15:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31081#M13176</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/151i1E6ED69538AA4A6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:02:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31081#M13176</guid>
      <dc:creator>ni0ni0s</dc:creator>
      <dc:date>2019-10-29T16:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31082#M13177</link>
      <description>&lt;P&gt;I see the problem, your request is not able to pass the file content with the request. Passing file path in json payload won't work. I am not much familier with PHP so not 100% sure. You can check if the content is being passed properly. When sending the form data from postman, it was able to send the file content.&lt;/P&gt;
&lt;P&gt;If you want to use raw json data only then you can use base64 encoded string formation of the file data in the request alternatively.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 17:15:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31082#M13177</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-10-30T17:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31083#M13178</link>
      <description>&lt;P&gt;Can you please share the POSTMAN request?&lt;/P&gt;&lt;P&gt;I tried form data, it is saying BAD Request - "Required parameters are missing". Not sure what I am missing here.&lt;/P&gt;&lt;P&gt;Here is my postman form-data&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 924px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/150iE2A1B2769E246FDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 16:45:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31083#M13178</guid>
      <dc:creator>Sujeet1999</dc:creator>
      <dc:date>2020-03-03T16:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31084#M13179</link>
      <description>&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Member-II lia-component-message-view-widget-author-username"&gt;&lt;SPAN&gt;postman and form-data working nice.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Member-II lia-component-message-view-widget-author-username"&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76788"&gt;@ni0ni0s&lt;/A&gt;&amp;nbsp;- Please help me out by sharing your postman request.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 16:49:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31084#M13179</guid>
      <dc:creator>Sujeet1999</dc:creator>
      <dc:date>2020-03-03T16:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Internal error 500 on upload file from REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31085#M13180</link>
      <description>&lt;P&gt;Looks like you are manually placing the file path as string. It will not work. File has to be attached. This is how we select a file in Postman. Rest of the params could be as is.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="select filedata.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/152i84C98A07DE143B52/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 20:20:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/internal-error-500-on-upload-file-from-rest-api/m-p/31085#M13180</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-03-03T20:20:22Z</dc:date>
    </item>
  </channel>
</rss>

