Read file and its properties from API and download it in Angular Client
问题 Need to download dynamic files which is returned from the api in the client side based on its type. This is what i have My api controller it looks like this public async Task<IActionResult> GetFile(int id) { IBaseResult<UserDetails> result = await _Bo.GetUSerDetails(id); //result will have content likes //1. FileName//fileaname.{extention} //2. FileType//eg.application/pdf or application/doc //3. FileContent//byte[] if (result.Data != null) { response.Success = result.success; response.Data =