<?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 Problem uploading files via upload API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problem-uploading-files-via-upload-api/m-p/279281#M232411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using API alfresco/service/api/upload which in the past worked quite well for some PHP file upload process. After upgrading to Alfresco 4.2.f this stopped working with an exception in log files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Caused by: java.lang.IllegalArgumentException: Class {}message/rfc822 has not been defined in the data dictionary&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that this has something to do with "contenttype" specified in the upload process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If no "contenttype" is set or "contenttype" is set to "cm:content" the file upload works but everyting is handled as binary file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;While having some emails to be uploaded they are normaly identified as "message/rfc822", "text/x-news" or "text/x-mail" but non of these is beeing uploaded anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting right "contenttype" is required so that type definition and preview is working in share still.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked configuration of 4.2.f system in comparision to 4.2.c system already and do not see any difference with regard to these types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody know if 4.2.f changed something on api/upload or how to make api/upload running so that message/rfc822 "contenttype" can be uploaded again?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/M&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Dec 2014 14:48:22 GMT</pubDate>
    <dc:creator>go4alfresco</dc:creator>
    <dc:date>2014-12-05T14:48:22Z</dc:date>
    <item>
      <title>Problem uploading files via upload API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-uploading-files-via-upload-api/m-p/279281#M232411</link>
      <description>Hello everybody,I'm using API alfresco/service/api/upload which in the past worked quite well for some PHP file upload process. After upgrading to Alfresco 4.2.f this stopped working with an exception in log files.Caused by: java.lang.IllegalArgumentException: Class {}message/rfc822 has not been def</description>
      <pubDate>Fri, 05 Dec 2014 14:48:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-uploading-files-via-upload-api/m-p/279281#M232411</guid>
      <dc:creator>go4alfresco</dc:creator>
      <dc:date>2014-12-05T14:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem uploading files via upload API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problem-uploading-files-via-upload-api/m-p/279282#M232412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello go4alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I got same issue about uploading file. Here i'm trying to share what i got, and i hope everyone correct me if i wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Started on Alfresco 4.2 above in the release note has announced this new api service. THe difference between new api and the old one, beside the endpoint, the data format has changed too. Previous version used xml atom data and now use json data. Because of that, the parameter to upload has changed too but i dont found any documentation about how to write the parameter. Eventhough i've some threads, but there is no complete sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there something i missed? Please provide a sample how to write parameter json data completely.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 07:53:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problem-uploading-files-via-upload-api/m-p/279282#M232412</guid>
      <dc:creator>khoer52</dc:creator>
      <dc:date>2015-04-07T07:53:52Z</dc:date>
    </item>
  </channel>
</rss>

