Custom Geoprocessing Tool has no option to Upload File in Web Mapping Application (but does in Web Map)

401
2
05-11-2020 07:20 AM
Sysniper
New Contributor

Hello,

I have a published geoprocessing service that allows uploads. I have a web mapping application where I've added the geoprocessing tool as a widget using the REST URL. The data type of the 'Input File' parameter is GPDataFile. After creating the widget, my 'Input File' field in the widget interface has no ability to open a file window and select a file. It only has a string entry box (first screenshot). Conversely, if I open the tool in the web map using the generic AGOL map viewer, I am given the choice of how I want to input the file: URL or Upload File (second screenshot). This works precisely as intended.

Frankly I'm at a loss as to why I can't get this working in the web mapping application. I can't imagine this is an error on ESRI's part, but on mine. Is there something I should be configuring in the web mapping application to allow for file dialogs to open?

Thanks,

Joey

0 Kudos
2 Replies
DavidPike
MVP Frequent Contributor

I don't have a stack to play with at the moment unfortunately so I can only say from memory, did you also allow uploads when setting up the GP widget?

0 Kudos
Sysniper
New Contributor

Hey David, yes uploads were allowed. Turns out this is a known bug:

https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEyNTQzNA==

Security patch to fix:

https://my.esri.com/#/support/cases/02553540

0 Kudos