Select to view content in your preferred language

Call GP service with upload

225
1
09-15-2022 06:31 AM
mody_buchbinder
Occasional Contributor III

We have our own GP service that gets a file as the first parameter.

When we published it we marked the "load" parameter that should let you load local file as this parameter.

When you work with WapApp Builder geoprocessing widget it will let you select a local file and send it to the server automatically and fetch it to the gp service..

We would like to do this in Python API when we load a local file and then give it to the gp service as a parameter.

Anybody have done this and can share a little code sample? 

0 Kudos
1 Reply
mody_buchbinder
Occasional Contributor III

Checking the docs I found this: https://developers.arcgis.com/python/api-reference/arcgis.geoprocessing.html#datafile but I do not understand if this is the answer and if it does - how to use it.

0 Kudos