In Angular I have code that upload json files to the controller in .NET Core:
json
public filesToUpload: FileList = null; handleFileInput(files: File