ArcGIS API for JavaScript: Hosted/UploadGPXFile (FeatureServer)
Built using the ArcGIS API for JavaScript