Does anyone know a simple code or a code to do this?
I do not think of anyone of ESRI developers have not idea how doing this.
Please some help will very helpfull
The sample will show you how to get the file attached to a form's input field, submit the file to AGOL (or portal) using the /features/generate endpoint to transform the shapefile to a JS API compatible object, then transform it to a feature layer. From there, you'll have the data in the JS API and can add/update/delete whatever needs it.
Hope that helps.
Thanks for your help, but I am looking for import/upload data into mi ArcGIS account (ArcGIS online), I mean save it in there for using after later.