<?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: Limit attachment size in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-attachment-size/m-p/497275#M46190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;I dont understand ur question , but i worked with attachments before.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;U must specified:&lt;/P&gt;&lt;UL&gt;&lt;UL style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;LI&gt;Content Type: JPEG, PNG, PDF, etc&lt;/LI&gt;&lt;LI&gt;Size: 470812 (in kb )&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;I remember in flex i worked with bytearrays to add the files at the server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 21:38:23 GMT</pubDate>
    <dc:creator>EvelynHernandez</dc:creator>
    <dc:date>2016-04-14T21:38:23Z</dc:date>
    <item>
      <title>Limit attachment size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-attachment-size/m-p/497274#M46189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I go about limiting the size and type of attachments for a specific service? I am working with the Editor widget with simple toolbar sample.&amp;nbsp; I know this should be straight forward, but I cannot find anything on the the subject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-attachment-size/m-p/497274#M46189</guid>
      <dc:creator>aubinmaynard</dc:creator>
      <dc:date>2016-04-14T21:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Limit attachment size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-attachment-size/m-p/497275#M46190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;I dont understand ur question , but i worked with attachments before.&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;U must specified:&lt;/P&gt;&lt;UL&gt;&lt;UL style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;LI&gt;Content Type: JPEG, PNG, PDF, etc&lt;/LI&gt;&lt;LI&gt;Size: 470812 (in kb )&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;I remember in flex i worked with bytearrays to add the files at the server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 21:38:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-attachment-size/m-p/497275#M46190</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2016-04-14T21:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Limit attachment size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-attachment-size/m-p/497276#M46191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me clarify:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i modify the edit sample&lt;/P&gt;&lt;P&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/ed_simpletoolbar/" title="http://developers.arcgis.com/javascript/samples/ed_simpletoolbar/"&gt;Edit rivers and waterbodies&lt;/A&gt; &lt;/P&gt;&lt;P&gt;to only allow a user to upload 1 photo less than 1 mb in size?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 18:33:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-attachment-size/m-p/497276#M46191</guid>
      <dc:creator>aubinmaynard</dc:creator>
      <dc:date>2016-04-19T18:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Limit attachment size</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-attachment-size/m-p/497277#M46192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when u capture the pic that u want to upload in ur app u have the following 2 steps:&lt;/P&gt;&lt;P&gt;1st: see the file size. How it has to be less than 1mb before u upload it to the service, u need to see the var myvar.size of the file &amp;lt; than 10000 (in kb).&lt;/P&gt;&lt;P&gt;2nd: if the size is ok, then u have to check if the feature that u wanna add the attachment it has attch already, so u can do that with queryAttachmentInfos. So if the result returns an array with 1 or more results for that feature, u need to delete them or not let the user upload the pic. In the case if u wanna overwrite ur pic, u need to delete all the attachments related to that feature and then upload ur pic.&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 18:51:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-attachment-size/m-p/497277#M46192</guid>
      <dc:creator>EvelynHernandez</dc:creator>
      <dc:date>2016-04-19T18:51:30Z</dc:date>
    </item>
  </channel>
</rss>

