I have around 4000 files I would like to upload to a folder in my AGOL account.
If you are asking how to automate this then I suggest you explore the ArcGIS API for Python, that will provide the capability to upload to your AGOL account.