In ArcMap you can control how the field types are interpruted using a schema.ini file residing in the same directory.
It would be great to have this same control when adding CSV files to AGOL either to just the map or as a hosted feature service.
This would help if the first row does not contain the field names which ArcGIS requires in order to import a *.csv file.and
if a column was supposed to be text field and had value 001, ArcGIS would automatically converts this to a number field dropping the leading 0’s.