<?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: CSV Layer Multiple local files uploading in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-layer-multiple-local-files-uploading/m-p/331575#M30659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Undral for your response. My scenarion is a bit different, i.e i am uploading multiple csv files and click on&amp;nbsp;a upload button with file uploading code and pass it to a method like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public attachFiles(files){&lt;/P&gt;&lt;P&gt;let urlArray=[ ]&lt;/P&gt;&lt;P&gt;for (let i=0; i&amp;lt;files.length; i++){&lt;/P&gt;&lt;P&gt;files.item(i)&lt;/P&gt;&lt;P&gt;urlArray.push(URL.createObjectURL(files&lt;I&gt;));&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // pushing files like example.csv&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;urlArray.forEach(rec=&amp;gt;{&lt;/P&gt;&lt;P&gt;if(rec){&lt;/P&gt;&lt;P&gt;this.csvLayer.url=rec;&lt;/P&gt;&lt;P&gt;this.csvLayer.qeryFeatures().then(function(response){&lt;/P&gt;&lt;P&gt;addGraphipcs(response)&amp;nbsp; &amp;nbsp;// drawing graphics for features&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;})&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works for one csv file, but i need to upload multiple files locally, anybody have idea how to do that.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2020 06:41:06 GMT</pubDate>
    <dc:creator>AminBangash</dc:creator>
    <dc:date>2020-06-22T06:41:06Z</dc:date>
    <item>
      <title>CSV Layer Multiple local files uploading</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-layer-multiple-local-files-uploading/m-p/331573#M30657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a project to upload multiple local csv files to csv layer via javascript api. Files are uploaded but only the first one is displayed. Can anybody help in this regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2020 10:00:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-layer-multiple-local-files-uploading/m-p/331573#M30657</guid>
      <dc:creator>AminBangash</dc:creator>
      <dc:date>2020-06-18T10:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Layer Multiple local files uploading</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-layer-multiple-local-files-uploading/m-p/331574#M30658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look at this &lt;A href="https://codepen.io/U_B_U/pen/xxZgBPj?editors=1000"&gt;simple test app&lt;/A&gt;. I am adding two csvlayers to the view in this app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Jun 2020 03:33:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-layer-multiple-local-files-uploading/m-p/331574#M30658</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2020-06-20T03:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Layer Multiple local files uploading</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-layer-multiple-local-files-uploading/m-p/331575#M30659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Undral for your response. My scenarion is a bit different, i.e i am uploading multiple csv files and click on&amp;nbsp;a upload button with file uploading code and pass it to a method like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public attachFiles(files){&lt;/P&gt;&lt;P&gt;let urlArray=[ ]&lt;/P&gt;&lt;P&gt;for (let i=0; i&amp;lt;files.length; i++){&lt;/P&gt;&lt;P&gt;files.item(i)&lt;/P&gt;&lt;P&gt;urlArray.push(URL.createObjectURL(files&lt;I&gt;));&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // pushing files like example.csv&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;urlArray.forEach(rec=&amp;gt;{&lt;/P&gt;&lt;P&gt;if(rec){&lt;/P&gt;&lt;P&gt;this.csvLayer.url=rec;&lt;/P&gt;&lt;P&gt;this.csvLayer.qeryFeatures().then(function(response){&lt;/P&gt;&lt;P&gt;addGraphipcs(response)&amp;nbsp; &amp;nbsp;// drawing graphics for features&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;})&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works for one csv file, but i need to upload multiple files locally, anybody have idea how to do that.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 06:41:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-layer-multiple-local-files-uploading/m-p/331575#M30659</guid>
      <dc:creator>AminBangash</dc:creator>
      <dc:date>2020-06-22T06:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Layer Multiple local files uploading</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-layer-multiple-local-files-uploading/m-p/331576#M30660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not clear what you are trying to achieve.&amp;nbsp;You are replacing the url of your csvlayer and the last url will win. You should be create a new csvlayer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;this.csvLayer.url=rec;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 15:53:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-layer-multiple-local-files-uploading/m-p/331576#M30660</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2020-06-22T15:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Layer Multiple local files uploading</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-layer-multiple-local-files-uploading/m-p/331577#M30661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Undral,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an upload button for uploading multiple local&amp;nbsp; files on local drive(no http url) with lat long, and i am trying to plot all csv files via csv layer. How to do that, what's the best , either i have to merge multiple csv files into one csv file and then plot it or all can be combined and draw at a time by single csv layer. Your response will be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2020 05:36:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/csv-layer-multiple-local-files-uploading/m-p/331577#M30661</guid>
      <dc:creator>AminBangash</dc:creator>
      <dc:date>2020-06-23T05:36:34Z</dc:date>
    </item>
  </channel>
</rss>

