<?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 Can an HTML file object be used directly as input for GP service? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-an-html-file-object-be-used-directly-as-input/m-p/746500#M69075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a GP service which takes as input a GPDataFile. I want to be able to upload a file from a local machine and then let a GP service to process it. This functionality is working as expected when I use the Upload Item with ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I am wondering if this is really necessary. Is it possible to supply the html file object directly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTML code to browse to a file.&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14307198650716484 jive_text_macro" data-renderedposition="134_8_913_16" jivemacro_uid="_14307198650716484"&gt;&lt;P&gt;&amp;lt;input id="uploadInput" type="file" name="myFile"&amp;gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JavaScript code to get the file. Returns an File object.&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14307198947208561" data-renderedposition="192_8_913_16" jivemacro_uid="_14307198947208561"&gt;&lt;P&gt;document.getElementById("uploadInput").files[0]&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this File object be given as input directly to a GP service which accepts GPDataFile as input?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2015 06:16:30 GMT</pubDate>
    <dc:creator>AlexeyTereshenkov</dc:creator>
    <dc:date>2015-05-04T06:16:30Z</dc:date>
    <item>
      <title>Can an HTML file object be used directly as input for GP service?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-an-html-file-object-be-used-directly-as-input/m-p/746500#M69075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a GP service which takes as input a GPDataFile. I want to be able to upload a file from a local machine and then let a GP service to process it. This functionality is working as expected when I use the Upload Item with ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I am wondering if this is really necessary. Is it possible to supply the html file object directly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTML code to browse to a file.&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14307198650716484 jive_text_macro" data-renderedposition="134_8_913_16" jivemacro_uid="_14307198650716484"&gt;&lt;P&gt;&amp;lt;input id="uploadInput" type="file" name="myFile"&amp;gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JavaScript code to get the file. Returns an File object.&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14307198947208561" data-renderedposition="192_8_913_16" jivemacro_uid="_14307198947208561"&gt;&lt;P&gt;document.getElementById("uploadInput").files[0]&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this File object be given as input directly to a GP service which accepts GPDataFile as input?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 06:16:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-an-html-file-object-be-used-directly-as-input/m-p/746500#M69075</guid>
      <dc:creator>AlexeyTereshenkov</dc:creator>
      <dc:date>2015-05-04T06:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can an HTML file object be used directly as input for GP service?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-an-html-file-object-be-used-directly-as-input/m-p/746501#M69076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't believe so.&amp;nbsp; You will need to use the geoprocessing service's upload function to get the file to the server. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 19:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-an-html-file-object-be-used-directly-as-input/m-p/746501#M69076</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2015-05-04T19:19:39Z</dc:date>
    </item>
  </channel>
</rss>

