<?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: Attachment Content Type is Incorrect When Adding to FeatureService in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/attachment-content-type-is-incorrect-when-adding/m-p/593527#M3018</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can see, it seems like this is not exposed on the feature service REST interface. I'm looking into why there are differences. Will let you know if I am able to track anything useful down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Dec 2018 16:13:07 GMT</pubDate>
    <dc:creator>LucasDanzinger</dc:creator>
    <dc:date>2018-12-17T16:13:07Z</dc:date>
    <item>
      <title>Attachment Content Type is Incorrect When Adding to FeatureService</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/attachment-content-type-is-incorrect-when-adding/m-p/593526#M3017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I making a QML application where the user can interact with Attachments. Attachments can be added, updated, or deleted. Everything works as expected when I am working with attachments in a .geodatabase file on the device. However, when I try to add or update Attachments on the online geodatabase, the Attachments are added or updated with incorrect values in the CONTENT_TYPE and ATT_NAME columns in the attachment table. I am trying to store all attachments with a content type of "application/octet-stream", but when I upload a .jpg as an attachment, it is stored as "image/jpeg". Also, the attachment name is being automatically set to the file name which is the behavior I want, but I am unable to manually set a name, which I can do when connected to the .geodatabase file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the addAttachment() and updateAttachmentWithIndex() tasks to add and update the attachments (for example: attachments.addAttachment(url, "application/octet-stream, fileName");). I am using the same code for the online geodatabase and the.geodatabase file, but they are giving different results. Also, when I sync the .geodatabase file to the online geodatabase, the data is transferred over properly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what I may be doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2018 17:40:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/attachment-content-type-is-incorrect-when-adding/m-p/593526#M3017</guid>
      <dc:creator>KeithLarson1</dc:creator>
      <dc:date>2018-12-12T17:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Content Type is Incorrect When Adding to FeatureService</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/attachment-content-type-is-incorrect-when-adding/m-p/593527#M3018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can see, it seems like this is not exposed on the feature service REST interface. I'm looking into why there are differences. Will let you know if I am able to track anything useful down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2018 16:13:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/attachment-content-type-is-incorrect-when-adding/m-p/593527#M3018</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2018-12-17T16:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Attachment Content Type is Incorrect When Adding to FeatureService</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/attachment-content-type-is-incorrect-when-adding/m-p/593528#M3019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mistake - I do see it now -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/attachment-feature-service-.htm" title="https://developers.arcgis.com/rest/services-reference/attachment-feature-service-.htm"&gt;Attachment (Feature Service)—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are seeing incorrect behavior where the wrong MIME type is used, I'd suggest logging a bug with Esri support, as&amp;nbsp;the behavior you explain&amp;nbsp;is not expected -&amp;nbsp;&lt;A class="link-titled" href="https://support.esri.com/en/contact-tech-support" title="https://support.esri.com/en/contact-tech-support"&gt;https://support.esri.com/en/contact-tech-support&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2018 20:38:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/attachment-content-type-is-incorrect-when-adding/m-p/593528#M3019</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2018-12-18T20:38:26Z</dc:date>
    </item>
  </channel>
</rss>

