For below method call whenever i am uploading PDF and msg files, i am getting cannot access closed file error in await file.CopyToAsync(memoryStream);
public