<?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 Update MimeType using API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-using-api/m-p/146985#M38921</link>
    <description>&lt;P&gt;It's seems that is not possible to update the mimeType of an existing document using the API.&lt;/P&gt;&lt;P&gt;When I upload a new version of a document with another mimeType using the API, it seems that there is no autodetection of this one. So I tried to update it manually through the content of a node, but that doesn't work.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;How to reproduce :&lt;/STRONG&gt; &lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Upload a PNG document&lt;/LI&gt;&lt;LI&gt;Using the put /nodes/{nodeId}/content endpoint, update the document into a new version, with a PDF document&lt;/LI&gt;&lt;LI&gt;The API returns that the file is updated, but content field is always with a mimeType "image/png"&lt;/LI&gt;&lt;LI&gt;Using the put /nodes/{nodeId}, try to update content field with "application/pdf" as MimeType&lt;/LI&gt;&lt;LI&gt;Get a 200 response, but content is always as "image/png"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Alfresco used : &lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;DIV class=""&gt;Alfresco Community v6.2.0&lt;/DIV&gt;&lt;DIV&gt;(rb65251d6-b368) schema 13001&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help,&lt;/DIV&gt;&lt;DIV&gt;Guillaume&lt;/DIV&gt;</description>
    <pubDate>Thu, 27 Oct 2022 13:29:39 GMT</pubDate>
    <dc:creator>Guitayk</dc:creator>
    <dc:date>2022-10-27T13:29:39Z</dc:date>
    <item>
      <title>Update MimeType using API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-using-api/m-p/146985#M38921</link>
      <description>&lt;P&gt;It's seems that is not possible to update the mimeType of an existing document using the API.&lt;/P&gt;&lt;P&gt;When I upload a new version of a document with another mimeType using the API, it seems that there is no autodetection of this one. So I tried to update it manually through the content of a node, but that doesn't work.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;How to reproduce :&lt;/STRONG&gt; &lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Upload a PNG document&lt;/LI&gt;&lt;LI&gt;Using the put /nodes/{nodeId}/content endpoint, update the document into a new version, with a PDF document&lt;/LI&gt;&lt;LI&gt;The API returns that the file is updated, but content field is always with a mimeType "image/png"&lt;/LI&gt;&lt;LI&gt;Using the put /nodes/{nodeId}, try to update content field with "application/pdf" as MimeType&lt;/LI&gt;&lt;LI&gt;Get a 200 response, but content is always as "image/png"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Alfresco used : &lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;DIV class=""&gt;Alfresco Community v6.2.0&lt;/DIV&gt;&lt;DIV&gt;(rb65251d6-b368) schema 13001&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help,&lt;/DIV&gt;&lt;DIV&gt;Guillaume&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Oct 2022 13:29:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-using-api/m-p/146985#M38921</guid>
      <dc:creator>Guitayk</dc:creator>
      <dc:date>2022-10-27T13:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Update MimeType using API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-using-api/m-p/146986#M38922</link>
      <description>&lt;P&gt;Did you find the solution ?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 08:45:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/update-mimetype-using-api/m-p/146986#M38922</guid>
      <dc:creator>AlfrescoZZZ</dc:creator>
      <dc:date>2024-06-04T08:45:57Z</dc:date>
    </item>
  </channel>
</rss>

