<?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 WAB Geoprocessing Widget URL upload in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/wab-geoprocessing-widget-url-upload/m-p/1375232#M69739</link>
    <description>&lt;P&gt;I have a Python toolkit tool with a DEFile parameter type and I publish it as a geoprocessing service. Then I created a Web Application Builder geoprocessing widget to access it from ArcGIS Online. You can see in the image below how it gets rendered in the widget. When I select "Upload File", it works as expected allowing the user to select a local file which then gets uploaded to the ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DonMorrison1_0-1706465046662.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92993i08EB594763C5BF9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DonMorrison1_0-1706465046662.png" alt="DonMorrison1_0-1706465046662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I don't understand how to make the URL selection work. I can see in the network trace that the URL does indeed get sent into the REST service, but by the time it reaches my python code it looks like this:&lt;/P&gt;&lt;P&gt;c:\arcgisserver\directories\arcgisjobs\row_dev\devorga_gptools_gpserver\j1b86d313ca9243ef9318a28bcba24ef0\scratch\1&lt;/P&gt;&lt;P&gt;There is no file by that name on the server.&amp;nbsp; The only thing I can think of is that my parameter type is wrong but I can't figure you what it should be. Any ideas?&amp;nbsp; &amp;nbsp;In reality I would be OK without URL functionality but I can't remove it from the widget UI, so as long as it is there I'd like to have it work correctly.&lt;/P&gt;</description>
    <pubDate>Sun, 28 Jan 2024 18:16:04 GMT</pubDate>
    <dc:creator>DonMorrison1</dc:creator>
    <dc:date>2024-01-28T18:16:04Z</dc:date>
    <item>
      <title>WAB Geoprocessing Widget URL upload</title>
      <link>https://community.esri.com/t5/python-questions/wab-geoprocessing-widget-url-upload/m-p/1375232#M69739</link>
      <description>&lt;P&gt;I have a Python toolkit tool with a DEFile parameter type and I publish it as a geoprocessing service. Then I created a Web Application Builder geoprocessing widget to access it from ArcGIS Online. You can see in the image below how it gets rendered in the widget. When I select "Upload File", it works as expected allowing the user to select a local file which then gets uploaded to the ArcGIS Server.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DonMorrison1_0-1706465046662.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92993i08EB594763C5BF9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DonMorrison1_0-1706465046662.png" alt="DonMorrison1_0-1706465046662.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But I don't understand how to make the URL selection work. I can see in the network trace that the URL does indeed get sent into the REST service, but by the time it reaches my python code it looks like this:&lt;/P&gt;&lt;P&gt;c:\arcgisserver\directories\arcgisjobs\row_dev\devorga_gptools_gpserver\j1b86d313ca9243ef9318a28bcba24ef0\scratch\1&lt;/P&gt;&lt;P&gt;There is no file by that name on the server.&amp;nbsp; The only thing I can think of is that my parameter type is wrong but I can't figure you what it should be. Any ideas?&amp;nbsp; &amp;nbsp;In reality I would be OK without URL functionality but I can't remove it from the widget UI, so as long as it is there I'd like to have it work correctly.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 18:16:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/wab-geoprocessing-widget-url-upload/m-p/1375232#M69739</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2024-01-28T18:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: WAB Geoprocessing Widget URL upload</title>
      <link>https://community.esri.com/t5/python-questions/wab-geoprocessing-widget-url-upload/m-p/1385959#M69939</link>
      <description>&lt;P&gt;In my experience using gpservice or WAB Geoproccessing widget , it runs purely on the script. Hence if you turn on upload file function, it uploads file from your desktop to the server. It cannot be removed even there is a URL. In other word, you need to create a new algorithm in your python file.&lt;/P&gt;&lt;P&gt;Because arcpy.GetParameterAsText, basically read texts. The parameter in the script tool is practically to filter the UI what type of your input.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully it helps you&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 12:49:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/wab-geoprocessing-widget-url-upload/m-p/1385959#M69939</guid>
      <dc:creator>AlexanderDanielPratama</dc:creator>
      <dc:date>2024-02-23T12:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: WAB Geoprocessing Widget URL upload</title>
      <link>https://community.esri.com/t5/python-questions/wab-geoprocessing-widget-url-upload/m-p/1386511#M69954</link>
      <description>&lt;P&gt;Hi Alexander - thanks for responding. But I don't quite follow your suggestion.&amp;nbsp; The file upload works perfectly. But when I click URL,&amp;nbsp; enter a URL, then Submit, I can't figure out how to get that URL string in my script. Instead of the URL, I get the string "&lt;SPAN&gt;c:\arcgisserver\directories\arcgisjobs\row_dev\devorga_gptools_gpserver\j1b86d313ca9243ef9318a28bcba24ef0\scratch\1'. I can certainly create a new algorithm in the Python file as you suggest but I'm not sure what it is supposed to do.&amp;nbsp; &amp;nbsp;Can you please clarify? Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 02:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/wab-geoprocessing-widget-url-upload/m-p/1386511#M69954</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2024-02-25T02:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: WAB Geoprocessing Widget URL upload</title>
      <link>https://community.esri.com/t5/python-questions/wab-geoprocessing-widget-url-upload/m-p/1386576#M69955</link>
      <description>&lt;P&gt;Pardon my misunderstood. Have you tried to fill in another URL with the method GET parameter directly that contains file. I look in Esri documentation like this image below (&lt;A href="https://doc.arcgis.com/en/web-appbuilder/11.2/create-apps/gp-parameter-types.htm" target="_blank"&gt;Geoprocessing parameter types—ArcGIS Web AppBuilder | Documentation&lt;/A&gt;).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlexanderDaniel_Pratama_0-1708906095283.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/95778i9B76D354DCE4040E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlexanderDaniel_Pratama_0-1708906095283.png" alt="AlexanderDaniel_Pratama_0-1708906095283.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 00:16:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/wab-geoprocessing-widget-url-upload/m-p/1386576#M69955</guid>
      <dc:creator>AlexanderDanielPratama</dc:creator>
      <dc:date>2024-02-26T00:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: WAB Geoprocessing Widget URL upload</title>
      <link>https://community.esri.com/t5/python-questions/wab-geoprocessing-widget-url-upload/m-p/1387120#M69963</link>
      <description>&lt;P&gt;Now I see where I was going wrong. I mistakenly thought the URL needed to point to a REST service, but it needs to point to a file, as shown in your image.&amp;nbsp; And this makes sense since the parameter type is DEFile. Opps.&amp;nbsp; Thanks so much Alexander helping me figure this out.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 00:34:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/wab-geoprocessing-widget-url-upload/m-p/1387120#M69963</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2024-02-27T00:34:29Z</dc:date>
    </item>
  </channel>
</rss>

