<?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 How do you enable exifInfo on attachments? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-do-you-enable-exifinfo-on-attachments/m-p/1041669#M39217</link>
    <description>&lt;P&gt;Good Day&lt;BR /&gt;&lt;BR /&gt;I'm trying to figure out how to view the exifInfo data after I fetch the attachments from ArcGIS JavaScript.&amp;nbsp;&amp;nbsp; I added attachments to the feature and I know road1 and road5 have exif data:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="amurdoch24_0-1617042932810.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9586i061D995BBD04BADB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="amurdoch24_0-1617042932810.png" alt="amurdoch24_0-1617042932810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I fetch the data I get this object back:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="amurdoch24_1-1617042995446.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9587iE73858B44887E075/image-size/medium?v=v2&amp;amp;px=400" role="button" title="amurdoch24_1-1617042995446.png" alt="amurdoch24_1-1617042995446.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How do I enable the exifInfo?&amp;nbsp; I was reading about a flag that I have to turn on in the settings of the feature layer but I can't see or find any option for this.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 29 Mar 2021 18:38:08 GMT</pubDate>
    <dc:creator>amurdoch24</dc:creator>
    <dc:date>2021-03-29T18:38:08Z</dc:date>
    <item>
      <title>How do you enable exifInfo on attachments?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-you-enable-exifinfo-on-attachments/m-p/1041669#M39217</link>
      <description>&lt;P&gt;Good Day&lt;BR /&gt;&lt;BR /&gt;I'm trying to figure out how to view the exifInfo data after I fetch the attachments from ArcGIS JavaScript.&amp;nbsp;&amp;nbsp; I added attachments to the feature and I know road1 and road5 have exif data:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="amurdoch24_0-1617042932810.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9586i061D995BBD04BADB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="amurdoch24_0-1617042932810.png" alt="amurdoch24_0-1617042932810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I fetch the data I get this object back:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="amurdoch24_1-1617042995446.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9587iE73858B44887E075/image-size/medium?v=v2&amp;amp;px=400" role="button" title="amurdoch24_1-1617042995446.png" alt="amurdoch24_1-1617042995446.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How do I enable the exifInfo?&amp;nbsp; I was reading about a flag that I have to turn on in the settings of the feature layer but I can't see or find any option for this.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 18:38:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-you-enable-exifinfo-on-attachments/m-p/1041669#M39217</guid>
      <dc:creator>amurdoch24</dc:creator>
      <dc:date>2021-03-29T18:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable exifInfo on attachments?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-you-enable-exifinfo-on-attachments/m-p/1048332#M39535</link>
      <description>&lt;P&gt;Setting returnMetadata: true in the query doesn't work and I can't find the setting in the feature service settings.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 20:15:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-you-enable-exifinfo-on-attachments/m-p/1048332#M39535</guid>
      <dc:creator>amurdoch24</dc:creator>
      <dc:date>2021-04-16T20:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do you enable exifInfo on attachments?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-you-enable-exifinfo-on-attachments/m-p/1050220#M39647</link>
      <description>&lt;P&gt;Solution:&amp;nbsp; Don't use the getAttachments function from the library, if you build the URL for the query, including returnMetadata, and use a plain httpGet, you'll have success.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I ended up using this function to grab the attachments, and they came with their EXIF Data:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;const &lt;/SPAN&gt;objectQuery = &lt;SPAN&gt;'?objectIds=' &lt;/SPAN&gt;+ result.&lt;SPAN&gt;features&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;.&lt;SPAN&gt;attributes&lt;/SPAN&gt;.FID&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;const &lt;/SPAN&gt;json = &lt;SPAN&gt;'&amp;amp;f=json'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;const &lt;/SPAN&gt;returnMeta = &lt;SPAN&gt;'&amp;amp;returnMetadata=true'&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;const &lt;/SPAN&gt;token = &lt;SPAN&gt;'&amp;amp;token=' &lt;/SPAN&gt;+ &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;_session&lt;/SPAN&gt;.&lt;SPAN&gt;token&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;const &lt;/SPAN&gt;attachmentUrl = &lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;attachmentURL &lt;/SPAN&gt;+ &lt;SPAN&gt;'queryAttachments' &lt;/SPAN&gt;+ objectQuery + token + returnMeta + json&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;// &lt;/SPAN&gt;&lt;SPAN&gt;TODO: Place a proper type reference here&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;this&lt;/SPAN&gt;.&lt;SPAN&gt;http&lt;/SPAN&gt;.&lt;SPAN&gt;httpNoHeader&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;attachmentUrl&lt;SPAN&gt;)&lt;/SPAN&gt;.&lt;SPAN&gt;then&lt;/SPAN&gt;&lt;SPAN&gt;((&lt;/SPAN&gt;attachmentRes: &lt;SPAN&gt;any&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;=&amp;gt; &lt;SPAN&gt;{&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;console&lt;/SPAN&gt;.&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Manual Attachment Query'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  &lt;SPAN&gt;console&lt;/SPAN&gt;.&lt;SPAN&gt;log&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;attachmentRes&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;}).catch((error) =&amp;gt; {&lt;BR /&gt;  console.log('Error');&lt;BR /&gt;  console.log(error);&lt;BR /&gt;});&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 18:05:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-you-enable-exifinfo-on-attachments/m-p/1050220#M39647</guid>
      <dc:creator>amurdoch24</dc:creator>
      <dc:date>2021-04-22T18:05:52Z</dc:date>
    </item>
  </channel>
</rss>

