add shapefile arcgis javascript4.1 api issues

1021
3
11-19-2016 07:12 PM
DarkoRadiceski
New Contributor II

Dear all 

I have been trying to get this example that works great for 3.18API but not in 4.1.

Example: Add shapefile | ArcGIS API for JavaScript 3.18 

When i implement this in the 4.1 API the shapefile seems to be posted to the portal endpoint but for some reason it does not complete and thrown an exception that a name parramets is not there. But i can clearly see that the parrameter is there in the POST.

Has anyone got this working?

I dont really got to creating a GP tool to do the same task if this can be leveraged to what portal exposes in the sharing API.

Sincerely

Dan

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Darko,

  I am not seeing any ability for the JS API 4.1 version of the request class to use a form. That would be an issue for that sample.

0 Kudos
DarkoRadiceski
New Contributor II

Is there any workaround that you are aware of to get something like this going?

or should i revert to using the GP call approach?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Darko,

   Until the 4.x api gets more mature you should just use 3.x or a gp.

0 Kudos