<?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 add shapefile from path in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-add-shapefile-from-path/m-p/424915#M39094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i use this sample&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/portal_addshapefile.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/portal_addshapefile.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;which allows you to upload a shapefile in zip file format&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but this function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.request({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;url: portalUrl + '/rest/content/features/generate',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;content: myContent,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;form: dojo.byId('uploadForm'),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;handleAs: 'json',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load: dojo.hitch(this, function (response) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addShapefileToMap(response.featureCollection);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;automatically upload file from &amp;lt;input type="file" &amp;gt; in form which name is "uploadForm"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i can`t change value in fileupload value due to security&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then i need call this function but i put my url or path&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Mar 2013 06:48:12 GMT</pubDate>
    <dc:creator>IbrahimAttia</dc:creator>
    <dc:date>2013-03-31T06:48:12Z</dc:date>
    <item>
      <title>How add shapefile from path</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-add-shapefile-from-path/m-p/424915#M39094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i use this sample&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/portal_addshapefile.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/portal_addshapefile.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;which allows you to upload a shapefile in zip file format&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but this function&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.request({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;url: portalUrl + '/rest/content/features/generate',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;content: myContent,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;form: dojo.byId('uploadForm'),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;handleAs: 'json',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;load: dojo.hitch(this, function (response) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;addShapefileToMap(response.featureCollection);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;})&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;automatically upload file from &amp;lt;input type="file" &amp;gt; in form which name is "uploadForm"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i can`t change value in fileupload value due to security&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then i need call this function but i put my url or path&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Mar 2013 06:48:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-add-shapefile-from-path/m-p/424915#M39094</guid>
      <dc:creator>IbrahimAttia</dc:creator>
      <dc:date>2013-03-31T06:48:12Z</dc:date>
    </item>
  </channel>
</rss>

